Message406149
Right now, deleting __debug__ is not prevented:
>>> def f():
... del __debug__
...
Of course actually executing it doesn't work:
>>> del __debug__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '__debug__' is not defined
Compare with assigning to __debug__:
>>> def f():
... __debug__ = 1
...
File "<stdin>", line 2
SyntaxError: cannot assign to __debug__ |
|
Date |
User |
Action |
Args |
2021-11-11 09:45:11 | Carl.Friedrich.Bolz | set | recipients:
+ Carl.Friedrich.Bolz |
2021-11-11 09:45:11 | Carl.Friedrich.Bolz | set | messageid: <1636623911.67.0.569601489226.issue45781@roundup.psfhosted.org> |
2021-11-11 09:45:11 | Carl.Friedrich.Bolz | link | issue45781 messages |
2021-11-11 09:45:11 | Carl.Friedrich.Bolz | create | |
|