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 gvanrossum
Recipients BTaskaya, gousaiyang, gvanrossum, pablogsal
Date 2020-09-30.20:28:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601497735.6.0.533809494219.issue41897@roundup.psfhosted.org>
In-reply-to
Content
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__
>>> 
```
History
Date User Action Args
2020-09-30 20:28:55gvanrossumsetrecipients: + gvanrossum, pablogsal, BTaskaya, gousaiyang
2020-09-30 20:28:55gvanrossumsetmessageid: <1601497735.6.0.533809494219.issue41897@roundup.psfhosted.org>
2020-09-30 20:28:55gvanrossumlinkissue41897 messages
2020-09-30 20:28:55gvanrossumcreate