Symbolic constant support, including collections and constants with text, numeric, and bit flag values.

Class _Constant
Class _ConstantsContainerType _ConstantsContainerType is a metaclass for creating constants container classes.
Class _ConstantsContainer _ConstantsContainer is a class with attributes used as symbolic constants. It is up to subclasses to specify what kind of constants are allowed.
Function _flagOp Implement a binary operator for a FlagConstant instance.
def _flagOp(op, left, right):

Implement a binary operator for a FlagConstant instance.

ParametersopA two-argument callable implementing the binary operation. For example, operator.or_.
leftThe left-hand FlagConstant instance.
rightThe right-hand FlagConstant instance.
ReturnsA new FlagConstant instance representing the result of the operation.
API Documentation for constantly, generated by pydoctor at 2016-05-30 18:36:47.