Commits

Author Commit Message Labels Comments Date
stoneleaf
ref435 moved to it's own repository
stoneleaf
turned subclassing on for testing purposes
stoneleaf
subclassing an implemented enum class now raises an error
stoneleaf
removed spurious import
stoneleaf
modified repr's a bit
stoneleaf
convenience function added iteration order tested
stoneleaf
subclassing works better :)
stoneleaf
pickling now works for Enum subclasses as well
stoneleaf
switched from 'yo' to 'self' added __getitem__ and pickle tests added __getitem__ and __getnewargs__
stoneleaf
added IntEnum to __all__
stoneleaf
reference implementation for PEP 435
stoneleaf
unpluralized all the enumerations
stoneleaf
learned about __call__ on the metaclass; now using that for enum lookup
stoneleaf
more simplification
stoneleaf
greatly simplified; now ignores descriptors
stoneleaf
started migration towards NamedValue implementation
stoneleaf
pep proposal
stoneleaf
actually removed the commented-out magic lines :/
stoneleaf
finished removing the dead magic code
stoneleaf
removed magic from class -- an assignment must be made
stoneleaf
changed 'value' to 'integer'; added 'value' for valued enums, such as strings
stoneleaf
changed name to 'aenum'; finished changing classes: Enum, Sequence, BitMask, String, with possible options INDEX and ORDER
stoneleaf
renamed Enum to SequenceEnum; started support for plain non-int Enum
stoneleaf
moved copyright into yaenum.py
stoneleaf
renamed to 'yaenum'; added extensive examples;
stoneleaf
fixed enum() having too many values for 'value'; fixed EnumClassDict._inc_value not handling initial value of 0 for BitMaskEnum
stoneleaf
added copyright notice and license
stoneleaf
added examples.py
stoneleaf
BitMaskEnum now working; all repr's in place; some tests added
stoneleaf
switched to three different classes: Enum, BitMaskEnum, and UniqueEnum
  1. Prev
  2. Next