Skip to content

Commit 67729a9

Browse files
bpo-44139: Use a more descriptive syntax error comprehension case in the What's New for 3.10 (GH-26145) (GH-26146)
(cherry picked from commit c5b8330) Co-authored-by: Pablo Galindo <[email protected]>
1 parent 71dca6e commit 67729a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ have been incorporated. Some of the most notable ones:
215215
216216
.. code-block:: python
217217
218-
>>> {x,y for x,y in range(100)}
218+
>>> {x,y for x,y in zip('abcd', '1234')}
219219
File "<stdin>", line 1
220-
{x,y for x,y in range(100)}
220+
{x,y for x,y in zip('abcd', '1234')}
221221
^
222222
SyntaxError: did you forget parentheses around the comprehension target?
223223

0 commit comments

Comments
 (0)