Skip to content

The tp_dictoffset and Py_TPFLAGS_MANAGED_WEAKREF flag #129912

@nybblista

Description

@nybblista

From the tp_dictoffset slot documentation:

"It is an error to set both the Py_TPFLAGS_MANAGED_WEAKREF bit and tp_dictoffset."

I think the Py_TPFLAGS_MANAGED_WEAKREF flag is being used incorrectly in this context. Do you mean the Py_TPFLAGS_MANAGED_DICT flag?

https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_dictoffset

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions