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 <1600302768.98.0.154198546222.issue40025@roundup.psfhosted.org>
In-reply-to
Content
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!
History
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: <1600302768.98.0.154198546222.issue40025@roundup.psfhosted.org>
2020-09-17 00:32:48ethan.furmanlinkissue40025 messages
2020-09-17 00:32:48ethan.furmancreate