◐ Shell
reader mode source ↗
Skip to content

bpo-46355: What's New: Note that PyFrameObject are private#31032

Merged
miss-islington merged 1 commit into
python:mainfrom
encukou:frame-is-private
Feb 1, 2022
Merged

bpo-46355: What's New: Note that PyFrameObject are private#31032
miss-islington merged 1 commit into
python:mainfrom
encukou:frame-is-private

Conversation

@encukou

@encukou encukou commented Jan 31, 2022

Copy link
Copy Markdown
Member

This adds a slightly more detailed explanation of the change.
The most important point is that the changed/removed fields
were "subject to change" to begin with.

https://bugs.python.org/issue46355

Automerge-Triggered-By: GH:encukou

This adds a slightly more detailed explanation of the change.
The most important point is that the changed/removed fields
were "subject to change" to begin with.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

LGTM. You're right, it's good to remind that the structure is "private".

@vstinner

Copy link
Copy Markdown
Member

A few lines below, there is "Changes of the PyThreadState structure members". IMO this structure is also private. At least, @markshannon and me want to make it opaque :-)

@encukou

encukou commented Jan 31, 2022

Copy link
Copy Markdown
Member Author

Feel free to send a similar PR.
I like to use similar wording as the docs, but I also check the docs of several past versions, to be fair to people that wrote their code long ago.
So for frame I added the "subject to change at any time", but threadstate docs say the members are not "public", so just calling them "private" should work.

@miss-islington miss-islington merged commit a4cb319 into python:main Feb 1, 2022
@encukou encukou deleted the frame-is-private branch February 1, 2022 10:22
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.

6 participants