New submission from Andre Roberge <andre.robe...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43121>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to