New submission from Andre Roberge <andre.robe...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44335>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to