constantly._constants module documentationconstantly
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. |
Implement a binary operator for a FlagConstant
instance.
| Parameters | op | A two-argument callable implementing the binary operation. For example,
operator.or_. |
| left | The left-hand FlagConstant instance. | |
| right | The right-hand FlagConstant instance. | |
| Returns | A new FlagConstant
instance representing the result of the operation. | |