We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NoneType
import enum class bitmap(enum.IntFlag): pass print(bitmap.from_bytes(b'\x00', 'little'))
3.11
bitmap(0)
3.12.0b4
Traceback (most recent call last): File "/.../cpython/test.py", line 6, in <module> print(bitmap.from_bytes(b'\x00', 'little')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/.../cpython/Lib/enum.py", line 742, in __call__ return cls._create_( ^^^^^^^^^^^^^ File "/.../cpython/Lib/enum.py", line 870, in _create_ for item in names: TypeError: 'NoneType' object is not iterable
I bisected the issue to #99500. /CC: @ethanfurman
Bug report
3.11
3.12.0b4
I bisected the issue to #99500.
/CC: @ethanfurman
Your environment
3.12.0b4