summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-07-10 16:41:02 (GMT)
committerGitHub <noreply@github.com>2023-07-10 16:41:02 (GMT)
commita840806d338805fe74a9de01081d30da7605a29f (patch)
tree06f91a8b4ff44d2ed848952332e7c279de74f6e1 /Include/cpython
parent3e23fa71f43fb225ca29a931644d1100e2f4d6b8 (diff)
downloadcpython-a840806d338805fe74a9de01081d30da7605a29f.zip
cpython-a840806d338805fe74a9de01081d30da7605a29f.tar.gz
cpython-a840806d338805fe74a9de01081d30da7605a29f.tar.bz2
gh-105227: Add PyType_GetDict() (GH-105747)
This compensates for static builtin types having `tp_dict` set to `NULL`. Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index d681435..ef90064 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -284,6 +284,7 @@ PyAPI_FUNC(PyTypeObject *) _PyType_CalculateMetaclass(PyTypeObject *, PyObject *
PyAPI_FUNC(PyObject *) _PyType_GetDocFromInternalDoc(const char *, const char *);
PyAPI_FUNC(PyObject *) _PyType_GetTextSignatureFromInternalDoc(const char *, const char *);
PyAPI_FUNC(PyObject *) PyType_GetModuleByDef(PyTypeObject *, PyModuleDef *);
+PyAPI_FUNC(PyObject *) PyType_GetDict(PyTypeObject *);
PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int);
PyAPI_FUNC(void) _Py_BreakPoint(void);