New submission from Andre Roberge <[email protected]>:
Consider the following:
>>> a = (1‚ 2) # not a comma, but unicode character.
Using Python 3.9 (and earlier), we get the following correct information
>>> a = (1‚ 2)
File "<stdin>", line 1
a = (1‚ 2)
^
SyntaxError: invalid character '‚' (U+201A)
Using Python 3.10, we get the following incorrect information instead:
>>> a = (1‚ 2)
File "<stdin>", line 1
a = (1‚ 2)
^
SyntaxError: invalid decimal literal
----------
messages: 398556
nosy: aroberge, pablogsal
priority: normal
severity: normal
status: open
title: Incorrect message: "Invalid decimal literal" (python 3.10)
versions: Python 3.10
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44780>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com