10BC0 bpo-40421: Add PyFrame_GetCode() function by vstinner · Pull Request #19757 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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.

3 participants

0