◐ Shell
clean mode source ↗

gh-94673: Hide Objects in PyTypeObject Behind Accessors by ericsnowcurrently · Pull Request #104074 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

carljm added a commit to carljm/cpython that referenced this pull request

May 2, 2023

carljm added a commit to carljm/cpython that referenced this pull request

May 2, 2023

markshannon

extern void _PyStaticType_ClearWeakRefs(PyInterpreterState *, PyTypeObject *type);
extern void _PyStaticType_Dealloc(PyInterpreterState *, PyTypeObject *);

PyAPI_FUNC(PyObject *) _PyType_GetDict(PyTypeObject *);

Choose a reason for hiding this comment

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

This shouldn't be exposed to user code, as it bypasses the protections in PyType_Modified()

Choose a reason for hiding this comment

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

I'll get this squared away. Thanks for pointing it out.

Labels