summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 7ebbfdb..aeb6a8c 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -1402,17 +1402,35 @@ _PyCode_GetVarnames(PyCodeObject *co)
}
PyObject *
+PyCode_GetVarnames(PyCodeObject *code)
+{
+ return _PyCode_GetVarnames(code);
+}
+
+PyObject *
_PyCode_GetCellvars(PyCodeObject *co)
{
return get_localsplus_names(co, CO_FAST_CELL, co->co_ncellvars);
}
PyObject *
+PyCode_GetCellvars(PyCodeObject *code)
+{
+ return _PyCode_GetCellvars(code);
+}
+
+PyObject *
_PyCode_GetFreevars(PyCodeObject *co)
{
return get_localsplus_names(co, CO_FAST_FREE, co->co_nfreevars);
}
+PyObject *
+PyCode_GetFreevars(PyCodeObject *code)
+{
+ return _PyCode_GetFreevars(code);
+}
+
static void
deopt_code(_Py_CODEUNIT *instructions, Py_ssize_t len)
{