Message 395928 - Python tracker

Message395928

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 <1623854284.21.0.364406323815.issue20115@roundup.psfhosted.org>
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: <1623854284.21.0.364406323815.issue20115@roundup.psfhosted.org>
2021-06-16 14:38:04iritkatriellinkissue20115 messages
2021-06-16 14:38:04iritkatrielcreate