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 Ethan Onstott, Jonathan Hsu, ankeshsaha, barry, docs@python, edd07, eli.bendersky, ethan.furman, hongweipeng, miss-islington, thatiparthy
Date 2020-09-17.00:32:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There was an effort to make it so `_generate_next_value_` could be defined last and still work correctly -- unfortunately, it could not handle the more common case of using `auto()` with the default `_generate_next_value_`:

  class I(Enum):
      first = auto()
      second = first + 2    # this line would fail

Closing the ticket.  Thank you everyone!
Date User Action Args
2020-09-17 00:32:49ethan.furmansetrecipients: + ethan.furman, barry, eli.bendersky, docs@python, thatiparthy, hongweipeng, miss-islington, edd07, Ethan Onstott, Jonathan Hsu, ankeshsaha
2020-09-17 00:32:48ethan.furmansetmessageid: <>
2020-09-17 00:32:48ethan.furmanlinkissue40025 messages
2020-09-17 00:32:48ethan.furmancreate