Message364707
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:21 | ethan.furman | set | recipients:
+ ethan.furman, barry, eli.bendersky, docs@python, edd07 |
2020-03-20 19:09:21 | ethan.furman | set | messageid: <1584731361.64.0.597175570021.issue40025@roundup.psfhosted.org> |
2020-03-20 19:09:21 | ethan.furman | link | issue40025 messages |
2020-03-20 19:09:21 | ethan.furman | create | |
|