[New-bugs-announce] [issue43121] Incorrect SyntaxError message for missing comma (3.10.a5)

Andre Roberge report at bugs.python.org
Wed Feb 3 16:05:50 EST 2021


New submission from Andre Roberge <andre.roberge at gmail.com>:

A missing comma between list items results in an incorrect message.


Python 3.10.0a5 (tags/v3.10.0a5:b0478d7, Feb  3 2021, 01:44:54) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

>>> a = [1, 2 3]
  File "<stdin>", line 1
    a = [1, 2 3]
         ^
SyntaxError: did you forget parentheses around the comprehension target?

----------
messages: 386457
nosy: aroberge
priority: normal
severity: normal
status: open
title: Incorrect SyntaxError message for missing comma (3.10.a5)
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43121>
_______________________________________


More information about the New-bugs-announce mailing list