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 iritkatriel
Recipients Arfrever, alex, arigo, benjamin.peterson, georg.brandl, iritkatriel, ita1024, jwilk, serhiy.storchaka, terry.reedy
Date 2021-06-16.14:38:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
This is still the same in 3.11. I added another line to the example's file, which shows more clearly what's happening:

>>> open('x.py', 'wb').write(b'#\x00\na\nb\n')

% ./python.exe x.py
Traceback (most recent call last):
  File "x.py", line 2, in <module>
    a
NameError: name 'b' is not defined
History
Date User Action Args
2021-06-16 14:38:04iritkatrielsetrecipients: + iritkatriel, arigo, georg.brandl, terry.reedy, benjamin.peterson, jwilk, Arfrever, alex, ita1024, serhiy.storchaka
2021-06-16 14:38:04iritkatrielsetmessageid: <[email protected]>
2021-06-16 14:38:04iritkatriellinkissue20115 messages
2021-06-16 14:38:04iritkatrielcreate