[New-bugs-announce] [issue44335] "Wrong" invalid character identified
Andre Roberge
report at bugs.python.org
Mon Jun 7 13:07:47 EDT 2021
New submission from Andre Roberge <andre.roberge at gmail.com>:
When using Python 3.10.0b2 on a line with more than one invalid characters, the second one is identified as being incorrect, whereas in previous versions the first such character was identified.
> py -3.8 unicode_quote.py
File "unicode_quote.py", line 2
a = « hello » « world »
^
SyntaxError: invalid character in identifier
> py -3.9 unicode_quote.py
File "C:\...\unicode_quote.py", line 2
a = « hello » « world »
^
SyntaxError: invalid character '«' (U+00AB)
> py -3.10 unicode_quote.py
File "C:\...\unicode_quote.py", line 2
a = « hello » « world »
^
SyntaxError: invalid character '»' (U+00BB)
----------
messages: 395267
nosy: aroberge, pablogsal
priority: normal
severity: normal
status: open
title: "Wrong" invalid character identified
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44335>
_______________________________________
More information about the New-bugs-announce
mailing list