diff options
author | Ken Jin <kenjin4096@gmail.com> | 2022-05-03 13:13:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 13:13:13 (GMT) |
commit | 6c7249f2655749a06b4674a17537f844bd54d217 (patch) | |
tree | 15c7131fdf51411d2e8e566347f75e9f0809f508 /Objects/codeobject.c | |
parent | 1d4a9a45b7ac8c1c5fecc363c988be59500f1ed7 (diff) | |
download | cpython-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.c | 5 |
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 |