Message377032
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:49 | ethan.furman | set | recipients:
+ ethan.furman, barry, eli.bendersky, docs@python, thatiparthy, hongweipeng, miss-islington, edd07, Ethan Onstott, Jonathan Hsu, ankeshsaha |
2020-09-17 00:32:48 | ethan.furman | set | messageid: <1600302768.98.0.154198546222.issue40025@roundup.psfhosted.org> |
2020-09-17 00:32:48 | ethan.furman | link | issue40025 messages |
2020-09-17 00:32:48 | ethan.furman | create | |
|