Skip to content
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

bpo-40421: Add PyFrame_GetCode() function #19757

Merged
merged 1 commit into from
Apr 28, 2020
Merged

bpo-40421: Add PyFrame_GetCode() function #19757

merged 1 commit into from
Apr 28, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 28, 2020

PyFrame_GetCode(frame): return a borrowed reference to the frame
code.

Replace frame->f_code with PyFrame_GetCode(frame) in most code,
except in frameobject.c and ceval.c.

Also add PyFrame_GetLineNumber() to the limited C API.

https://bugs.python.org/issue40421

PyFrame_GetCode(frame): return a borrowed reference to the frame
code.

Replace frame->f_code with PyFrame_GetCode(frame) in most code,
except in frameobject.c, genobject.c and ceval.c.

Also add PyFrame_GetLineNumber() to the limited C API.
@vstinner
Copy link
Member Author

Hum, Travis CI failed because test_concurrent_futures altered the environment: that's https://bugs.python.org/issue39995 bug.

@vstinner vstinner merged commit a42ca74 into python:master Apr 28, 2020
@vstinner vstinner deleted the frame_getcode branch April 28, 2020 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants