We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa98ac commit c8181ccCopy full SHA for c8181cc
Include/cpython/funcobject.h
@@ -97,6 +97,11 @@ static inline PyObject* PyFunction_GET_GLOBALS(PyObject *func) {
97
}
98
#define PyFunction_GET_GLOBALS(func) PyFunction_GET_GLOBALS(_PyObject_CAST(func))
99
100
+static inline PyObject* PyFunction_GET_BUILTINS(PyObject *func) {
101
+ return _PyFunction_CAST(func)->func_builtins;
102
+}
103
+#define PyFunction_GET_BUILTINS(func) PyFunction_GET_BUILTINS(_PyObject_CAST(func))
104
+
105
static inline PyObject* PyFunction_GET_MODULE(PyObject *func) {
106
return _PyFunction_CAST(func)->func_module;
107
0 commit comments