Message365321
Hi,
I have ran the code with with _generate_next_value_ method at the bottom of the class and didn't run into any exceptions. Please refer my python file. Please let me know if I am missing something.
from enum import Enum, auto
class E(Enum):
A = auto()
B = auto()
def _generate_next_value_(name, *args):
return name
for l in (E):
print(l.name)
print(l.value) |
|
Date |
User |
Action |
Args |
2020-03-30 15:23:41 | ankeshsaha | set | recipients:
+ ankeshsaha, barry, eli.bendersky, docs@python, ethan.furman, edd07, Ethan Onstott, Jonathan Hsu |
2020-03-30 15:23:41 | ankeshsaha | set | messageid: <1585581821.89.0.662483857584.issue40025@roundup.psfhosted.org> |
2020-03-30 15:23:41 | ankeshsaha | link | issue40025 messages |
2020-03-30 15:23:41 | ankeshsaha | create | |
|