core.python

Source code: core/python.seq

core.python.LD
core.python.PyUnicode_AsEncodedString()
core.python.PyBytes_AsString()
core.python.PyErr_Fetch()
core.python.PyObject_GetAttrString()
core.python.PyObject_Str()
core.python.PyRun_SimpleString()
core.python.Py_IncRef()
core.python.Py_DecRef()
core.python.PyObject_CallObject()
core.python.PyObject_SetAttrString()
core.python.PyObject_Length()
core.python.Py_Initialize()
core.python.PyImport_ImportModule()
core.python.PyLong_FromLong()
core.python.PyLong_AsLong()
core.python.PyFloat_FromDouble()
core.python.PyFloat_AsDouble()
core.python.PyBool_FromLong()
core.python.PyObject_IsTrue()
core.python.PyUnicode_DecodeFSDefaultAndSize()
core.python.PyTuple_New()
core.python.PyTuple_SetItem()
core.python.PyTuple_GetItem()
core.python.PyList_New()
core.python.PyList_SetItem()
core.python.PyList_GetItem()
core.python.PySet_New()
core.python.PySet_Add()
core.python.PyDict_New()
core.python.PyDict_SetItem()
core.python.PyDict_Next()
type core.python.pyobj

Magic methods:

__getitem__(name: str)
__setitem__(name: str, val: pyobj)
__len__()
__to_py__()
__from_py__()

Methods:

to_str(errors: str, empty: str = '')
exc_check()
exc_wrap(_retval)
incref()
decref()
call(args: optional[pyobj] = None)
core.python.init()
core.python.ensure_initialized()
core.python.none()
core.python.imp(name: str)
core.python.exec(code: str)
core.python.py(x)
core.python.get[T](x: pyobj)
extension int

Magic methods:

__to_py__()
__from_py__(i: pyobj)
extension float

Magic methods:

__to_py__()
__from_py__(d: pyobj)
extension bool

Magic methods:

__to_py__()
__from_py__(b: pyobj)
extension byte

Magic methods:

__to_py__()
__from_py__(c: pyobj)
extension str

Magic methods:

__to_py__()
__from_py__(s: pyobj)
extension seq

Magic methods:

__to_py__()
__from_py__(s: pyobj)
extension list[T]

Magic methods:

__to_py__()
__from_py__(v: pyobj)
extension dict[K,V]

Magic methods:

__to_py__()
__from_py__(d: pyobj)
extension set[K]

Magic methods:

__to_py__()
core.python.py_tuple_new(len: int)
core.python.py_tuple_setitem(obj: cobj, idx: int, val: cobj)
core.python.py_tuple_getitem(obj: cobj, idx: int)