This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients bup, steven.daprano
Date 2019-02-15.12:40:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550234441.68.0.519688234303.issue36000@roundup.psfhosted.org>
In-reply-to
Content
I'm not sure that __debug__ is a proper keyword. Unlike None, if you monkey-patch builtins, you can modify it:

py> builtins.__dict__['__debug__'] = 'Surprise!'
py> __debug__
'Surprise!'

py> builtins.__dict__['None'] = 'Surprise!'
py> None
py>


And it is not listed here:

https://docs.python.org/3.7/reference/lexical_analysis.html#keywords

So __debug__ appears to me to be in a strange grey area, part regular name and part keyword, but not quite either.
History
Date User Action Args
2019-02-15 12:40:41steven.dapranosetrecipients: + steven.daprano, bup
2019-02-15 12:40:41steven.dapranosetmessageid: <1550234441.68.0.519688234303.issue36000@roundup.psfhosted.org>
2019-02-15 12:40:41steven.dapranolinkissue36000 messages
2019-02-15 12:40:41steven.dapranocreate