Google

LINK="#0000bb" VLINK="#551a8b" ALINK="#ff0000">

Objects of the univ.Boolean class

Instances of univ.Boolean class partially implement Python numeric object protocol by means of the following additional methods:

__and__(value)
__or__(value)
__xor__(value)

These methods implement the binary arithmetic operations (&, ^, |) against the value and return a instance of Boolean object initialized to the result of the arithmetic operation.

__rand__(value)
__ror__(value)
__rxor__(value)

These methods implement the binary arithmetic operations (&, ^, |) against the value with reflected (swapped) operands, and return a instance of Boolean object initialized to the result of the arithmetic operation.

The folowing set of methods can be called only by Python version 1.6 and later.

__iand__(value)
__ior__(value)
__ixor__(value)

These methods implement in-place arithmetic operations (&=, ^=, |=) against the value and return an instance of ourselves (self).


ilya@glas.net