summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2020-01-09 19:18:47 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-01-09 19:18:47 (GMT)
commita796d8ef9dd1af65f7e4d7a857b56f35b7cb6e78 (patch)
tree74a9998ed3d7e959faba13b04d951b7b53e37e91 /Misc
parent2f65aa465865930f8364645b1466d2751c4086d3 (diff)
downloadcpython-a796d8ef9dd1af65f7e4d7a857b56f35b7cb6e78.zip
cpython-a796d8ef9dd1af65f7e4d7a857b56f35b7cb6e78.tar.gz
cpython-a796d8ef9dd1af65f7e4d7a857b56f35b7cb6e78.tar.bz2
bpo-39235: Fix end location for genexp in call args (GH-17925)
The fix changes copy_location() to require an extra node from which to extract the end location, and fixing all 5 call sites. https://bugs.python.org/issue39235
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-01-09-10-01-18.bpo-39235.RYwjoc.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-01-09-10-01-18.bpo-39235.RYwjoc.rst b/Misc/NEWS.d/next/Core and Builtins/2020-01-09-10-01-18.bpo-39235.RYwjoc.rst
new file mode 100644
index 0000000..5fb0d45
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-01-09-10-01-18.bpo-39235.RYwjoc.rst
@@ -0,0 +1,2 @@
+Fix AST end location for lone generator expression in function call, e.g.
+f(i for i in a).