Ankesh Saha <ankesh.1...@gmail.com> added the comment:

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)

----------
nosy: +ankeshsaha
Added file: https://bugs.python.org/file49014/Issue40025.PNG

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40025>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to