Message377721
We moved the check from the parser to the bytecode compiler. I don't think this should be a problem. Kudos for noticing though! :-)
```
>>> compile("__debug__ = 1", "<string>", "exec")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
SyntaxError: cannot assign to __debug__
>>>
``` |
|
Date |
User |
Action |
Args |
2020-09-30 20:28:55 | gvanrossum | set | recipients:
+ gvanrossum, pablogsal, BTaskaya, gousaiyang |
2020-09-30 20:28:55 | gvanrossum | set | messageid: <1601497735.6.0.533809494219.issue41897@roundup.psfhosted.org> |
2020-09-30 20:28:55 | gvanrossum | link | issue41897 messages |
2020-09-30 20:28:55 | gvanrossum | create | |
|