bpo-40421: Cleanup PyFrame C API#32417
Conversation
|
@markshannon: I started to review #32413 before seeing that it was already merged 3 hours ago, aaaah :-) So I created a PR instead. I don't think that it's useful to mention that the function argument must not be NULL. We don't do that in the doc of other C API functions. It's implicit. |
|
In terms of API, PyFrame_GetLasti() returns an The code constructor makes sure that co_code cannot be larger than INT_MAX: |
|
https://bugs.python.org/issue40421 is closed. What is the status of this PR? |
|
Thanks @vstinner @iritkatriel This is just a minor tidy up, https://bugs.python.org/issue40421 can remain closed. |
I don't think so. |
|
Merged, thanks for the review @markshannon |
https://bugs.python.org/issue40421