[issue44780] Incorrect message: "Invalid decimal literal" (python 3.10)

Andre Roberge report at bugs.python.org
Fri Jul 30 10:52:34 EDT 2021


New submission from Andre Roberge <andre.roberge at 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 <report at bugs.python.org>
<https://bugs.python.org/issue44780>
_______________________________________


More information about the Python-bugs-list mailing list