Files
TransPyC/Test/CPythonTest/App/cpython.py
2026-06-16 16:09:42 +08:00

26 lines
500 B
Python

import t, c
class PyObject:
ob_refcnt: t.CLong
ob_type: t.CPtr
def Py_Initialize() -> t.CVoid | t.CExtern:
pass
def PyLong_FromLong(value: t.CLong) -> PyObject | t.CPtr | t.CExtern:
pass
def PyObject_Str(obj: PyObject | t.CPtr) -> PyObject | t.CPtr | t.CExtern:
pass
def PyUnicode_AsUTF8(unicode_obj: PyObject | t.CPtr) -> str | t.CExtern:
pass
def Py_DecRef(obj: PyObject | t.CPtr) -> t.CVoid | t.CExtern:
pass
def Py_Finalize() -> t.CVoid | t.CExtern:
pass