Mailing List Archive

bpo-44139: Use a more descriptive syntax error comprehension case in the What's New for 3.10 (GH-26145)
https://github.com/python/cpython/commit/c5b833046d9dbb2063f776703fc513b71664b859
commit: c5b833046d9dbb2063f776703fc513b71664b859
branch: main
author: Pablo Galindo <Pablogsal@gmail.com>
committer: pablogsal <Pablogsal@gmail.com>
date: 2021-05-15T17:37:12+01:00
summary:

bpo-44139: Use a more descriptive syntax error comprehension case in the What's New for 3.10 (GH-26145)

files:
M Doc/whatsnew/3.10.rst

diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index c15bb326938097..926679e6f32dc5 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -215,9 +215,9 @@ have been incorporated. Some of the most notable ones:

.. code-block:: python

- >>> {x,y for x,y in range(100)}
+ >>> {x,y for x,y in zip('abcd', '1234')}
File "<stdin>", line 1
- {x,y for x,y in range(100)}
+ {x,y for x,y in zip('abcd', '1234')}
^
SyntaxError: did you forget parentheses around the comprehension target?


_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins