Skip to content

bpo-46355: Document PyFrameObject and PyThreadState changes #30558

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

Merged
merged 2 commits into from
Jan 13, 2022
Merged

bpo-46355: Document PyFrameObject and PyThreadState changes #30558

merged 2 commits into from
Jan 13, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jan 12, 2022

Document PyFrameObject and PyThreadState changes in What's New in
Python 3.11 and explain how to port code.

https://bugs.python.org/issue46355

Document PyFrameObject and PyThreadState changes in What's New in
Python 3.11 and explain how to port code.
@vstinner
Copy link
Member Author

The Python frame object is now created lazily. A side effect is that the
``f_back`` member must not be accessed directly, since its value is now also
computed lazily. The :c:func:`PyFrame_GetBack` function must be called
instead.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created https://bugs.python.org/issue46356 to propose to enforce the usage of PyFrame_GetBack() on Python 3.11 to make the C API less error prone.

@vstinner vstinner merged commit 0885999 into python:main Jan 13, 2022
@vstinner vstinner deleted the frame_doc branch January 13, 2022 18:21
@vstinner
Copy link
Member Author

I merged my PR so the doc can be reviewed online at https://docs.python.org/dev/whatsnew/3.11.html once it will be rendered ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants