]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39235: Fix end location for genexp in call args (GH-17925)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 Jan 2020 19:39:00 +0000 (11:39 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Jan 2020 19:39:00 +0000 (11:39 -0800)
commit33e033da3c1472b0aa2ae3cff06649a1ae4aa37f
treea4be4b9cd11396724fb5a538aa580344cd480aba
parente47a7e3a7ab2cfb321e5f276028be286f30bd057
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
(cherry picked from commit a796d8ef9dd1af65f7e4d7a857b56f35b7cb6e78)

Co-authored-by: Guido van Rossum <guido@python.org>
Misc/NEWS.d/next/Core and Builtins/2020-01-09-10-01-18.bpo-39235.RYwjoc.rst [new file with mode: 0644]
Python/ast.c