Message335606
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. |
|
Date |
User |
Action |
Args |
2019-02-15 12:40:41 | steven.daprano | set | recipients:
+ steven.daprano, bup |
2019-02-15 12:40:41 | steven.daprano | set | messageid: <1550234441.68.0.519688234303.issue36000@roundup.psfhosted.org> |
2019-02-15 12:40:41 | steven.daprano | link | issue36000 messages |
2019-02-15 12:40:41 | steven.daprano | create | |
|