diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-20 04:46:55 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-20 04:46:55 (GMT) |
commit | 24ea8d3d9c85d54bcc8c242a073c0886a0273c36 (patch) | |
tree | a1822b64abeaa084c2d26cd0066d577f0a941248 /Lib/doctest.py | |
parent | d9a10509ace3fc749d299bd5c117c745f72275d7 (diff) | |
download | cpython-24ea8d3d9c85d54bcc8c242a073c0886a0273c36.zip cpython-24ea8d3d9c85d54bcc8c242a073c0886a0273c36.tar.gz cpython-24ea8d3d9c85d54bcc8c242a073c0886a0273c36.tar.bz2 |
Fix SF bug #505315: Make free and cell vars show up consistently in locals().
PyFrame_FastToLocals() and PyFrame_LocalsToFast() had a return if
f_nlocals was 0. I think this was a holdover from the pre 2.1 days
when regular locals were the only kind of local variables.
The change makes it possible to use a free variable in eval or exec if
it the variable is also used elsewhere in the same block, which is
what the documentation says.
Diffstat (limited to 'Lib/doctest.py')
0 files changed, 0 insertions, 0 deletions