Skip to content

bpo-46355: Document PyFrameObject and PyThreadState changes - #30558

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:frame_doc
Jan 13, 2022
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:frame_doc

Conversation

@vstinner

@vstinner vstinner commented Jan 12, 2022 •

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author
Comment thread Doc/whatsnew/3.11.rst
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
Copy Markdown
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
Copy Markdown
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

3 participants