New submission from Andre Roberge <andre.robe...@gmail.com>:

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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44780>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to