Skip to content

bpo-40421: Add PyFrame_GetCode() function - #19757

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:frame_getcode
Apr 28, 2020
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:frame_getcode

Conversation

@vstinner

@vstinner vstinner commented Apr 28, 2020 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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

3 participants