Skip to content

[C API] Deprecate _Py_Identifier API #142217

@vstinner

Description

@vstinner

I propose to deprecate the _Py_Identifier API.

  • Deprecate private _PyObject_CallMethodId(), _PyObject_GetAttrId(), _PyUnicode_FromId().
  • Remove immediately internal functions using _Py_Identifier.

See also the discussions:

Since 2022, CPython has been modified to replace _Py_IDENTIFIER() with _Py_STR(). Python no longer uses the _Py_IDENTIFIER() API anymore.

See also issue #141049 "Deprecate private C API functions".

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions