Author dkorchem
Recipients dkorchem
Date 2014-06-10.14:33:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402410828.65.0.285347945192.issue21706@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2014-06-10 14:33:48dkorchemsetrecipients: + dkorchem
2014-06-10 14:33:48dkorchemsetmessageid: <1402410828.65.0.285347945192.issue21706@psf.upfronthosting.co.za>
2014-06-10 14:33:48dkorchemlinkissue21706 messages
2014-06-10 14:33:48dkorchemcreate