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 ethan.furman
Recipients John Hagen, barry, eli.bendersky, ethan.furman
Date 2016-07-11.19:05:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468263927.64.0.539313905661.issue26988@psf.upfronthosting.co.za>
In-reply-to
Content
If you are constructing your own base Enum type, which would you rather do?

class BaseZeroEnum(Enum):
   "initial integer is 0"
   _start_ = 0
   ...

or

class BaseZeroEnum(Enum, start=0):
   "initial integer is 0"
   ...

?  Oh, and yes if you specify a starting number you also activate the AutoNumber feature.
History
Date User Action Args
2016-07-11 19:05:27ethan.furmansetrecipients: + ethan.furman, barry, eli.bendersky, John Hagen
2016-07-11 19:05:27ethan.furmansetmessageid: <1468263927.64.0.539313905661.issue26988@psf.upfronthosting.co.za>
2016-07-11 19:05:27ethan.furmanlinkissue26988 messages
2016-07-11 19:05:27ethan.furmancreate