[issue45781] Deleting __debug__ should be an SyntaxError
Terry J. Reedy
report at bugs.python.org
Fri Nov 12 17:36:58 EST 2021
Terry J. Reedy <tjreedy at udel.edu> added the comment:
For comparison:
True = 0
SyntaxError: cannot assign to True
del True
SyntaxError: cannot delete True
It almost seems like __debug__ is a hidden keyword value, but with a startup-dependent value
----------
components: +Interpreter Core
nosy: +pablogsal, terry.reedy
stage: -> test needed
type: -> enhancement
versions: +Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45781>
_______________________________________
More information about the Python-bugs-list
mailing list