Skip to content

Commit

Permalink
bpo-44139: Use a more descriptive syntax error comprehension case in …
Browse files Browse the repository at this point in the history
…the What's New for 3.10 (GH-26145) (GH-26146)

(cherry picked from commit c5b8330)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
  • Loading branch information
miss-islington and pablogsal committed May 15, 2021
1 parent 71dca6e commit 67729a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/whatsnew/3.10.rst
Expand Up @@ -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?
Expand Down

0 comments on commit 67729a9

Please sign in to comment.