GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — `enum`: Member names accidentally removed from "invalid enum member name(s)" message · Issue #93118 · python/cpython Closed Closed Copy link Labels 3.11only security fixesonly security fixes3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug report In acf7403 (#30582), @ethanfurman changed the "Invalid enum member name" error message to "invalid enum member name(s)": Lines 482 to 484 in b2694ab
(This was later reverted in 42a64c0 and reintroduced in 83d544b, but I believe the code to be the same). However, the commit also removed $ python3.10 -c "import enum; enum.Enum('A', ['mro'])"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.10/enum.py", line 387, in __call__
return cls._create_(
File "/usr/lib/python3.10/enum.py", line 518, in _create_
enum_class = metacls.__new__(metacls, class_name, bases, classdict)
File "/usr/lib/python3.10/enum.py", line 208, in __new__
raise ValueError('Invalid enum member name: {0}'.format(
ValueError: Invalid enum member name: mro$ python3.11 -c "import enum; enum.Enum('A', ['mro'])"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.11/enum.py", line 791, in __call__
return cls._create_(
^^^^^^^^^^^^^
File "/usr/lib/python3.11/enum.py", line 966, in _create_
return metacls.__new__(metacls, class_name, bases, classdict, boundary=boundary)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/enum.py", line 483, in __new__
raise ValueError('invalid enum member name(s) '.format(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid enum member name(s) Given that the (Found by running Your environment
Activity
MetadataMetadataAssigneesLabels3.11only security fixesonly security fixes3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |