Release date: future
Release date: 2016-12-13
- Fix: len() of abstract flags classes caused the following exception:
AttributeError: type object 'Flags' has no attribute '__all_members__'
Release date: 2016-12-13
- Fix: added the
@unique
and@unique_bits
decorators to the__all__
list of the flags module. - Fix: testing abstract flags classes for truth value caused the following exception:
AttributeError: type object 'Flags' has no attribute '__all_members__'
Release date: 2016-04-29
- Extended README.rst with full documentation. Before it contained only a "Quick Overview" section.
- Added
Flags.__dotted_single_flag_str__
. - The
Flags.data
property returnsUNDEFINED
for special flags and flag combinations. - Added the
__pickle_int_flags__
class attribute that can be set toTrue
in order to force pickle to save theint
representation of flags instead of the defaultto_simple_str()
representation. - Added the
@unique_bits
decorator that can be used to forbid overlapping bits between the values of flags. - Added the
@unique
decorator that can be used to forbid aliases in a flags class. (An alias is a flag that has the exact same value as a previously declared flag.) - Added
__repr__
for flags classes.
Release date: 2016-04-23
- Fixed the README.rst in the distribution.
Release date: 2016-04-23
Initial release on pypi.