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-141004: DocumentPyType_FastSubclass#141313

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

Open
StanFromIreland wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromStanFromIreland:PyType_FastSubclass

Conversation

@StanFromIreland
Copy link
Member

@StanFromIrelandStanFromIreland commentedNov 9, 2025
edited by github-actionsbot
Loading

I think documenting it as a function is better.


📚 Documentation preview 📚:https://cpython-previews--141313.org.readthedocs.build/

Comment on lines +138 to +140
Return non-zero if the type object *type* sets the subclass flag *flag*.
Subclass flags are denoted by
:c:macro:`Py_TPFLAGS_*_SUBCLASS <Py_TPFLAGS_LONG_SUBCLASS>`.

Choose a reason for hiding this comment

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

Let's add a note mentioning that most_Check macros/functions use this.

Comment on lines +1354 to 1355
These flags are used by functions such as:c:func:`PyType_FastSubclass` and
:c:func:`PyLong_Check` to quickly determine if a type is a subclass

Choose a reason for hiding this comment

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

I think this is a little misleading. These are usedwithPyType_FastSubclass, notby it. Let's instead say something like "functions such asPyLong_Check will callPyType_FastSubclass with one of these flags".

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

Reviewers

@ZeroIntensityZeroIntensityZeroIntensity left review comments

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@StanFromIreland@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp