Package dbf :: Module ver_2 :: Class Logical
[hide private]
[frames] | no frames]

Class Logical

source code

object --+
         |
        Logical

Logical field return type.

Accepts values of True, False, or None/Null

Instance Methods [hide private]
 
__add__(x, y) source code
 
__iadd__(x, y) source code
 
__radd__(x, y) source code
 
__sub__(x, y) source code
 
__isub__(x, y) source code
 
__rsub__(y, x) source code
 
__mul__(x, y) source code
 
__imul__(x, y) source code
 
__rmul__(x, y) source code
 
__div__(x, y) source code
 
__idiv__(x, y) source code
 
__rdiv__(y, x) source code
 
__truediv__(x, y) source code
 
__itruediv__(x, y) source code
 
__rtruediv__(y, x) source code
 
__floordiv__(x, y) source code
 
__ifloordiv__(x, y) source code
 
__rfloordiv__(y, x) source code
 
__divmod__(x, y) source code
 
__rdivmod__(y, x) source code
 
__mod__(x, y) source code
 
__imod__(x, y) source code
 
__rmod__(y, x) source code
 
__pow__(x, y) source code
 
__ipow__(x, y) source code
 
__rpow__(y, x) source code
 
__lshift__(x, y) source code
 
__ilshift__(x, y) source code
 
__rlshift__(y, x) source code
 
__rshift__(x, y) source code
 
__irshift__(x, y) source code
 
__rrshift__(y, x) source code
 
__neg__(x)
NEG (negation)
source code
 
__pos__(x)
POS (posation)
source code
 
__abs__(x) source code
 
__invert__(x) source code
 
__complex__(x) source code
 
__int__(x) source code
 
__long__(x) source code
 
__float__(x) source code
 
__oct__(x) source code
 
__hex__(x) source code
 
__and__(x, y)
AND (conjunction) x & y: True iff both x, y are True False iff at least one of x, y is False Unknown otherwise
source code
 
__rand__(x, y)
AND (conjunction) x & y: True iff both x, y are True False iff at least one of x, y is False Unknown otherwise
source code
 
__or__(x, y)
OR (disjunction): x | y => True iff at least one of x, y is True
source code
 
__ror__(x, y)
OR (disjunction): x | y => True iff at least one of x, y is True
source code
 
__xor__(x, y)
XOR (parity) x ^ y: True iff only one of x,y is True
source code
 
__rxor__(x, y)
XOR (parity) x ^ y: True iff only one of x,y is True
source code
 
__nonzero__(x) source code
 
__eq__(x, y) source code
 
__ge__(x, y) source code
 
__gt__(x, y) source code
 
__le__(x, y) source code
 
__lt__(x, y) source code
 
__ne__(x, y) source code
 
__hash__(x)
hash(x)
source code
 
__index__(x) source code
 
__repr__(x)
repr(x)
source code
 
__str__(x)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, value=None) source code
Class Variables [hide private]
  true = Logical('T')
  false = Logical('F')
  unknown = Logical('?')
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, value=None)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__hash__(x)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__repr__(x)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(x)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)