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

2021-12-26 Thread Andre Roberge
Andre Roberge added the comment: The last of these three cases (with FRACTION SLASH) is fixed 3.10.1. The other two are still present in 3.10.1 and in 3.11.0a3 -- versions: +Python 3.11 ___ Python tracker _

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

2021-07-30 Thread Andre Roberge
Andre Roberge added the comment: Third case. Showing only the output for Python 3.10 >>> a = 3 ⁄ 7 # entered with a space around ⁄ File "", line 1 a = 3 ⁄ 7 ^ SyntaxError: invalid character '⁄' (U+2044) >>> a = 3⁄7# no added space File "", line 1 a = 3⁄7 ^ Sy

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

2021-07-30 Thread Andre Roberge
Andre Roberge added the comment: Here's another related case. Python 3.9: >>> a = 1½ File "", line 1 a = 1½ ^ SyntaxError: invalid character '½' (U+00BD) Python 3.10 >>> a = 1½ File "", line 1 a = 1½ ^ SyntaxError: invalid decimal literal --

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

2021-07-30 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-07-30 Thread Andre Roberge
New submission from Andre Roberge : 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 "", line 1 a = (1‚ 2) ^ SyntaxError: invalid character '‚' (U+201A) Us