mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
gh-113939: Frame clear, clear locals (#113940)
This commit is contained in:
parent
b905fad838
commit
78c254582b
3 changed files with 27 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
frame.clear():
|
||||
Clear frame.f_locals as well, and not only the fast locals.
|
||||
This is relevant once frame.f_locals was accessed,
|
||||
which would contain also references to all the locals.
|
||||
Loading…
Add table
Add a link
Reference in a new issue