New GitHub issue #99248 from udhayprakash:<br>
<hr>
<pre>
<!--
If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not
the right place to seek help. Consider the following options instead:
- reading the Python tutorial: https://docs.python.org/3/tutorial/
- posting in the "Users" category on discuss.python.org: https://discuss.python.org/c/users/7
- emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list
- searching our issue tracker (https://github.com/python/cpython/issues) to see if
your problem has already been reported
-->
# Bug report
A clear and concise description of what the bug is.
Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible.
# Your environment
<!-- Include as many relevant details as possible about the environment you experienced the bug in -->
from enum import Flag, verify, NAMED_FLAGS
@verify(NAMED_FLAGS)
class Color(Flag):
RED = -1 # 0
GREEN = 2
BLUE = 4
WHITE = 9
NEON = 6
In this example, it is working good, if RED has value of 0, but is resulting in Memory Error, if its value is changed to -1
- CPython versions tested on: 3.11.0
- Operating system and architecture: Windows 10, 64 bit
<!--
You can freely edit this text. Remove any lines you believe are unnecessary.
-->
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/99248">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>