[pypy-issue] [issue1617] Deleted local variables show up in locals()

Alex Gaynor tracker at bugs.pypy.org
Mon Sep 30 06:39:25 CEST 2013


New submission from Alex Gaynor <alex.gaynor at gmail.com>:

Specifically, if you call locals(), delete a local var, and then call locals() 
again, it's still present:

def main():
    a = 3
    locals()
    del a
    print locals()

main()


The cause is at pypy/interpreter/eval.py fast2locals:L110

----------
messages: 6235
nosy: agaynor, pypy-issue
priority: bug
status: unread
title: Deleted local variables show up in locals()

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1617>
________________________________________


More information about the pypy-issue mailing list