-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-131776: Expose functions called from the interpreter loop via PyAPI_FUNC #134242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,9 @@ _PyType_GetModuleState(PyTypeObject *type) | |
// function | ||
PyAPI_FUNC(PyObject *) _PyType_GetDict(PyTypeObject *); | ||
|
||
PyAPI_FUNC(PyObject *) _PyType_LookupSubclasses(PyTypeObject *); | ||
PyAPI_FUNC(PyObject *) _PyType_InitSubclasses(PyTypeObject *); | ||
Comment on lines
+93
to
+94
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It feels a little off, putting the dict out there to be modified. What do you need this for, specifically? Can we provide some specific operation (like "set a dict watcher") rather than exposing the whole dict? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll drop this for now and come back and do a different PR that specifically addresses the classes. It seems like adding a whole new API for this is deserving of its own PR. |
||
|
||
extern PyObject * _PyType_GetBases(PyTypeObject *type); | ||
extern PyObject * _PyType_GetMRO(PyTypeObject *type); | ||
extern PyObject* _PyType_GetSubclasses(PyTypeObject *); | ||
|
Uh oh!
There was an error while loading. Please reload this page.