summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorKen Jin <kenjin4096@gmail.com>2022-05-03 13:13:13 (GMT)
committerGitHub <noreply@github.com>2022-05-03 13:13:13 (GMT)
commit6c7249f2655749a06b4674a17537f844bd54d217 (patch)
tree15c7131fdf51411d2e8e566347f75e9f0809f508 /Objects/codeobject.c
parent1d4a9a45b7ac8c1c5fecc363c988be59500f1ed7 (diff)
downloadcpython-6c7249f2655749a06b4674a17537f844bd54d217.zip
cpython-6c7249f2655749a06b4674a17537f844bd54d217.tar.gz
cpython-6c7249f2655749a06b4674a17537f844bd54d217.tar.bz2
gh-92154: Expose PyCode_GetCode in the C API (GH-92168)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index e3e4ca1..9f922da 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -1370,6 +1370,11 @@ _PyCode_GetCode(PyCodeObject *co)
return code;
}
+PyObject *
+PyCode_GetCode(PyCodeObject *co)
+{
+ return _PyCode_GetCode(co);
+}
/******************
* PyCode_Type