gh-94673: Hide Objects in PyTypeObject Behind Accessors by ericsnowcurrently · Pull Request #104074 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Conversation
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters