Skip to content

Use PyObject_HasAttrWithError on Python 3.13+ #5940

@davidhewitt

Description

@davidhewitt

We can optimize the hasattr implementation to not need to suppress AttributeError by using PyObject_HasAttrWithError on Python 3.13+.

I suggest we do this by implementing pyo3_ffi::compat::PyObject_HasAttrWithError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions