Message220169
In enum module the functional API for enum creation has the following signature:
Enum(value='NewEnumName', names=<...>, *, module='...', qualname='...', type=<mixed-in class>)
so that the numeration always starts with 1. In some cases it is convenient to start numbering from other base, e.g., 0. It would be of great help to add an additional parameter, say start, to make the following call possible:
Animal = Enum('Animal', 'ant bee cat dog', start = 0) |
|
Date |
User |
Action |
Args |
2014-06-10 14:33:48 | dkorchem | set | recipients:
+ dkorchem |
2014-06-10 14:33:48 | dkorchem | set | messageid: <1402410828.65.0.285347945192.issue21706@psf.upfronthosting.co.za> |
2014-06-10 14:33:48 | dkorchem | link | issue21706 messages |
2014-06-10 14:33:48 | dkorchem | create | |
|