Guido van Rossum <gu...@python.org> added the comment:
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__ >>> ``` ---------- resolution: -> wont fix stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41897> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com