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

Specialization of member descriptors only handlesPy_T_OBJECT_EX but_Py_T_OBJECT seems more common #111772

Closed
Labels
performancePerformance or resource usage
@markshannon

Description

@markshannon

Despite_Py_T_OBJECT being marked as deprecated indescrobject.h it is commonly used in the standard library.
LOAD_ATTR_SLOT de-optimizes if the stored value isNULL. If the stored value is notNULL, both_Py_T_OBJECT andPy_T_OBJECT_EX act the same, so we can reuseLOAD_ATTR_SLOT for_Py_T_OBJECT.

For storing attributes,_Py_T_OBJECT andPy_T_OBJECT_EX are exactly the same.

I don't know why_Py_T_OBJECT is deprecated, the semantics seem quite reasonable.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp