enum type
Project description
>>> from standardenum import StandardEnum >>> class SampleEnum(StandardEnum): ... A = 1 ... B = 2 ... C = 3 ... >>> SampleEnum.A <SampleEnum.A value=1> >>> for e in SampleEnum: ... print e ... <SampleEnum.A value=1> <SampleEnum.B value=2> <SampleEnum.C value=3> >>> SampleEnum.A == SampleEnum.A True >>> SampleEnum.A == SampleEnum.B False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
standardenum-0.1.tar.gz
(2.1 kB
view hashes)