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 details)
File details
Details for the file standardenum-0.1.tar.gz
.
File metadata
- Download URL: standardenum-0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801b2ca59f563d6243e49eb898ddffe62a8dd989bb36f9c9469ab81dd3808bd8 |
|
MD5 | b958b50f2e95a048ff8963cd6ce0fbbf |
|
BLAKE2b-256 | 9d92a9afffb335761368c63bd056cc6949a96bb3e6f41cb5e045677414e36854 |