New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local variables not freed when Exception raises in function called from cycle #49891
Comments
Situation: What happens: Example: Output of the example program: While start As you can see, a variable 'a' created in the first call (which throws Imagine that in 'job' function you create a large amount of data, or Tested on Python 2.5.2 and 2.7(svn). On the contrary, Python 3.0 does As Python 2.X will be another long time with us, I think it should be |
This is not a question of "correct" behavior, but of documented Closing as "won't fix." |
I'm not talking about exception variable, but about the variables in Sorry, if I did not make myself clear. |
I know, but that object is kept alive by the frame object that is kept |
I just spend several days figuring out a problem that was caused by this Georg, could you give me a pointer where exactly these semantics are Thanks! |
Well, it's the basic principle that an object is not destroyed until |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: