Author ankeshsaha
Recipients Ethan Onstott, Jonathan Hsu, ankeshsaha, barry, docs@python, edd07, eli.bendersky, ethan.furman
Date 2020-03-30.15:23:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585581821.89.0.662483857584.issue40025@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2020-03-30 15:23:41ankeshsahasetrecipients: + ankeshsaha, barry, eli.bendersky, docs@python, ethan.furman, edd07, Ethan Onstott, Jonathan Hsu
2020-03-30 15:23:41ankeshsahasetmessageid: <1585581821.89.0.662483857584.issue40025@roundup.psfhosted.org>
2020-03-30 15:23:41ankeshsahalinkissue40025 messages
2020-03-30 15:23:41ankeshsahacreate