aboutsummaryrefslogtreecommitdiff
path: root/docs/reference/repl.rst
diff options
context:
space:
mode:
authorDamien George2018-10-26 16:48:07 +1100
committerDamien George2018-10-28 00:33:08 +1100
commit9201f46cc8e92231f0f6c92e4d56befbc150f72c (patch)
tree425eeb6f9031a94acf2b79cb56a0a35a902da173 /docs/reference/repl.rst
parentc2074e7b66a042492604fbf9ea80b71cdf848e93 (diff)
py/compile: Fix case of eager implicit conversion of local to nonlocal.
This ensures that implicit variables are only converted to implicit closed-over variables (nonlocals) at the very end of the function scope. If variables are closed-over when first used (read from, as was done prior to this commit) then this can be incorrect because the variable may be assigned to later on in the function which means they are just a plain local, not closed over. Fixes issue #4272.
Diffstat (limited to 'docs/reference/repl.rst')
0 files changed, 0 insertions, 0 deletions