Module __builtin__ :: Class bool
[show private | hide private]
[frames | no frames]

Type bool

object --+    
         |    
       int --+
             |
            bool


bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.
Method Summary
  __and__(x, y)
x.__and__(y) <==> x&y
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __or__(x, y)
x.__or__(y) <==> x|y
  __rand__(x, y)
x.__rand__(y) <==> y&x
  __repr__(x)
x.__repr__() <==> repr(x)
  __ror__(x, y)
x.__ror__(y) <==> y|x
  __rxor__(x, y)
x.__rxor__(y) <==> y^x
  __str__(x)
x.__str__() <==> str(x)
  __xor__(x, y)
x.__xor__(y) <==> x^y
Inherited from int: __abs__, __add__, __cmp__, __coerce__, __div__, __divmod__, __float__, __floordiv__, __getattribute__, __getnewargs__, __hash__, __hex__, __int__, __invert__, __long__, __lshift__, __mod__, __mul__, __neg__, __nonzero__, __oct__, __pos__, __pow__, __radd__, __rdiv__, __rdivmod__, __rfloordiv__, __rlshift__, __rmod__, __rmul__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __sub__, __truediv__
Inherited from object: __init__, __delattr__, __reduce__, __reduce_ex__, __setattr__

Method Details

__and__(x, y)
(And operator)

x.__and__(y) <==> x&y
Returns:
x&y
Overrides:
__builtin__.int.__and__

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.int.__new__

__or__(x, y)
(Or operator)

x.__or__(y) <==> x|y
Returns:
x|y
Overrides:
__builtin__.int.__or__

__rand__(x, y)

x.__rand__(y) <==> y&x
Returns:
y&x
Overrides:
__builtin__.int.__rand__

__repr__(x)
(Representation operator)

x.__repr__() <==> repr(x)
Returns:
repr(x)
Overrides:
__builtin__.int.__repr__

__ror__(x, y)

x.__ror__(y) <==> y|x
Returns:
y|x
Overrides:
__builtin__.int.__ror__

__rxor__(x, y)

x.__rxor__(y) <==> y^x
Returns:
y^x
Overrides:
__builtin__.int.__rxor__

__str__(x)
(Informal representation operator)

x.__str__() <==> str(x)
Returns:
str(x)
Overrides:
__builtin__.int.__str__

__xor__(x, y)

x.__xor__(y) <==> x^y
Returns:
x^y
Overrides:
__builtin__.int.__xor__

Generated by Epydoc 2.1 on Thu Aug 16 09:55:09 2007 http://epydoc.sf.net