summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-05-15 16:37:12 (GMT)
committerGitHub <noreply@github.com>2021-05-15 16:37:12 (GMT)
commitc5b833046d9dbb2063f776703fc513b71664b859 (patch)
treedb8063b2ac207167889bb29655dec9f7669a37a3
parentf24afda5917ce1710ad08ca34b2509f1f2b16de2 (diff)
downloadcpython-c5b833046d9dbb2063f776703fc513b71664b859.zip
cpython-c5b833046d9dbb2063f776703fc513b71664b859.tar.gz
cpython-c5b833046d9dbb2063f776703fc513b71664b859.tar.bz2
bpo-44139: Use a more descriptive syntax error comprehension case in the What's New for 3.10 (GH-26145)
-rw-r--r--Doc/whatsnew/3.10.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index c15bb32..926679e 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?