-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Set line number on the POP_TOP that follows a RETURN_GENERATOR #109923
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
Comments
The I agree it is worth doing in order to reduce the size of the table, but I'm curious how it helped with #109094. |
There's a test that throws into a newly created generator. The instr_ptr points to the POP_TOP and the prev_instr points to the RETURN_GENERATOR so that line number in the traceback was different. |
Uh oh!
There was an error while loading. Please reload this page.
Currently the
POP_TOP
of a generator doesn't get a line number.If we give it the same line number as the
RETURN_GENERATOR
andRESUME
, that will reduce the size of the line number table.The missing line number also got in my way while working on #109094.
Linked PRs
The text was updated successfully, but these errors were encountered: