]> granicus.if.org Git - python/commit
bpo-32836: Remove obsolete code from symtable pass (GH-5680)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Mar 2018 23:11:47 +0000 (15:11 -0800)
committerGitHub <noreply@github.com>
Sat, 10 Mar 2018 23:11:47 +0000 (15:11 -0800)
commit5506d603021518eaaa89e7037905f7a698c5e95c
tree85eb2a8668a8a09fe3a604401f1b845a931d067f
parente8a5a92037b1f27809806bb87c17976d2d48d3e9
bpo-32836: Remove obsolete code from symtable pass (GH-5680)

When comprehensions switched to using a nested scope, the old
code for generating a temporary name to hold the accumulation
target became redundant, but was never actually removed.

Patch by Nitish Chandra.
(cherry picked from commit 3a087beddd9f0955eb9080a6fd1499ff89ca74bf)

Co-authored-by: Nitish Chandra <nitishchandrachinta@gmail.com>
Include/symtable.h
Misc/NEWS.d/next/Core and Builtins/2018-02-14-12-35-47.bpo-32836.bThJnx.rst [new file with mode: 0644]
Python/symtable.c