Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-115776: RenamePy_TPFLAGS_INLINE_VALUES as_Py_TPFLAGS_INLINE_VALUES#128635

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

markshannon
Copy link
Member

@markshannonmarkshannon commentedJan 8, 2025
edited by bedevere-appbot
Loading

ThePy_TPFLAGS_INLINE_VALUES should not be used when declaring a staticPyTypeObject. It can only be used by the VM when creating a class. It is undocumented, but is exposed inobject.h.
This PR adds an underscore prefix to the name to make it clearer that this flag is internal.

@Fidget-Spinner
Copy link
Member

There are 2 package using this, but otherwise LGTMhttps://grep.app/search?q=Py_TPFLAGS_INLINE_VALUES

@markshannon
Copy link
MemberAuthor

That's unfortunate. I still think we are better off moving it, as any code using it (except for tools like PySpy) is broken.
I'll deprecatePy_TPFLAGS_INLINE_VALUES instead of removing it, and add a "what's new" entry.

@Fidget-Spinner
Copy link
Member

Yeah I realised their usage is wrong. Don't think it's even safe to unset the flag after it's been set.

@encukou
Copy link
Member

How do you check whether a type uses this layout (as inJPype)?

The code in JPype is a workaround for earlier breakage. Is there a clean way to do what they need?

@markshannon
Copy link
MemberAuthor

Probably too late to get any code changes in for 3.14, and maybe too late to remove it for 3.15.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Fidget-SpinnerFidget-SpinnerFidget-Spinner approved these changes

@methanemethaneAwaiting requested review from methanemethane is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@markshannon@Fidget-Spinner@encukou

[8]ページ先頭

©2009-2025 Movatter.jp