This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dkorchem
Recipients dkorchem
Date 2014-06-10.14:33:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:48dkorchemsetrecipients: + dkorchem
2014-06-10 14:33:48dkorchemsetmessageid: <>
2014-06-10 14:33:48dkorchemlinkissue21706 messages
2014-06-10 14:33:48dkorchemcreate