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 barry, docs@python, edd07, eli.bendersky, ethan.furman
Date 2020-03-20.19:09:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Immediate solution is to raise an exception if `_generate_next_value_` is defined after members.

Possible future solution is to save all member definitions until after class is defined.

The exception-raising solution would require a check in `_EnumDict` where `_generate_next_value_` is saved -- if any members already exist, raise.
Date User Action Args
2020-03-20 19:09:21ethan.furmansetrecipients: + ethan.furman, barry, eli.bendersky, docs@python, edd07
2020-03-20 19:09:21ethan.furmansetmessageid: <>
2020-03-20 19:09:21ethan.furmanlinkissue40025 messages
2020-03-20 19:09:21ethan.furmancreate