internal.python

Standard library module View source
variable Py_DecRef
Py_DecRef = Function[([cobj], NoneType)](cobj())
variable Py_IncRef
Py_IncRef = Function[([cobj], NoneType)](cobj())
variable Py_Initialize
Py_Initialize = Function[([], NoneType)](cobj())
variable PyImport_AddModule
PyImport_AddModule = Function[([cobj], cobj)](cobj())
variable PyImport_AddModuleObject
PyImport_AddModuleObject = Function[([cobj], cobj)](cobj())
variable PyImport_ImportModule
PyImport_ImportModule = Function[([cobj], cobj)](cobj())
variable PyRun_SimpleString
PyRun_SimpleString = Function[([cobj], NoneType)](cobj())
variable PyEval_GetGlobals
PyEval_GetGlobals = Function[([], cobj)](cobj())
variable PyEval_GetBuiltins
PyEval_GetBuiltins = Function[([], cobj)](cobj())
variable PyOS_setsig
PyOS_setsig = Function[([i32, cobj], cobj)](cobj())
variable PyLong_AsLong
PyLong_AsLong = Function[([cobj], int)](cobj())
variable PyLong_FromLong
PyLong_FromLong = Function[([int], cobj)](cobj())
variable PyFloat_AsDouble
PyFloat_AsDouble = Function[([cobj], float)](cobj())
variable PyFloat_FromDouble
PyFloat_FromDouble = Function[([float], cobj)](cobj())
variable PyBool_FromLong
PyBool_FromLong = Function[([int], cobj)](cobj())
variable PyBytes_AsString
PyBytes_AsString = Function[([cobj], cobj)](cobj())
variable PyBytes_Size
PyBytes_Size = Function[([cobj], int)](cobj())
variable PyBytes_FromStringAndSize
PyBytes_FromStringAndSize = Function[([cobj, int], cobj)](cobj())
variable PyList_New
PyList_New = Function[([int], cobj)](cobj())
variable PyList_Size
PyList_Size = Function[([cobj], int)](cobj())
variable PyList_GetItem
PyList_GetItem = Function[([cobj, int], cobj)](cobj())
variable PyList_SetItem
PyList_SetItem = Function[([cobj, int, cobj], cobj)](cobj())
variable PyDict_New
PyDict_New = Function[([], cobj)](cobj())
variable PyDict_Next
PyDict_Next = Function[([cobj, Ptr[int], Ptr[cobj], Ptr[cobj]], int)](cobj())
variable PyDict_GetItem
PyDict_GetItem = Function[([cobj, cobj], cobj)](cobj())
variable PyDict_GetItemString
PyDict_GetItemString = Function[([cobj, cobj], cobj)](cobj())
variable PyDict_SetItem
PyDict_SetItem = Function[([cobj, cobj, cobj], cobj)](cobj())
variable PyDict_Size
PyDict_Size = Function[([cobj], int)](cobj())
variable PySet_Add
PySet_Add = Function[([cobj, cobj], cobj)](cobj())
variable PySet_New
PySet_New = Function[([cobj], cobj)](cobj())
variable PyTuple_New
PyTuple_New = Function[([int], cobj)](cobj())
variable PyTuple_Size
PyTuple_Size = Function[([cobj], int)](cobj())
variable PyTuple_GetItem
PyTuple_GetItem = Function[([cobj, int], cobj)](cobj())
variable PyTuple_SetItem
PyTuple_SetItem = Function[([cobj, int, cobj], i32)](cobj())
variable PyUnicode_AsEncodedString
PyUnicode_AsEncodedString = Function[([cobj, cobj, cobj], cobj)](cobj())
variable PyUnicode_AsUTF8AndSize
PyUnicode_AsUTF8AndSize = Function[([cobj, Ptr[int]], cobj)](cobj())
variable PyUnicode_FromKindAndData
PyUnicode_FromKindAndData = Function[([int, cobj, int], cobj)](cobj())
variable PyUnicode_FromString
PyUnicode_FromString = Function[([cobj], cobj)](cobj())
variable PyComplex_FromDoubles
PyComplex_FromDoubles = Function[([float, float], cobj)](cobj())
variable PyComplex_RealAsDouble
PyComplex_RealAsDouble = Function[([cobj], float)](cobj())
variable PyComplex_ImagAsDouble
PyComplex_ImagAsDouble = Function[([cobj], float)](cobj())
variable PyIter_Next
PyIter_Next = Function[([cobj], cobj)](cobj())
variable PySlice_New
PySlice_New = Function[([cobj, cobj, cobj], cobj)](cobj())
variable PySlice_Unpack
PySlice_Unpack = Function[([cobj, Ptr[int], Ptr[int], Ptr[int]], int)](cobj())
variable PyCapsule_New
PyCapsule_New = Function[([cobj, cobj, cobj], cobj)](cobj())
variable PyCapsule_GetPointer
PyCapsule_GetPointer = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Add
PyNumber_Add = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Subtract
PyNumber_Subtract = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Multiply
PyNumber_Multiply = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_MatrixMultiply
PyNumber_MatrixMultiply = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_FloorDivide
PyNumber_FloorDivide = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_TrueDivide
PyNumber_TrueDivide = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Remainder
PyNumber_Remainder = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Divmod
PyNumber_Divmod = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Power
PyNumber_Power = Function[([cobj, cobj, cobj], cobj)](cobj())
variable PyNumber_Negative
PyNumber_Negative = Function[([cobj], cobj)](cobj())
variable PyNumber_Positive
PyNumber_Positive = Function[([cobj], cobj)](cobj())
variable PyNumber_Absolute
PyNumber_Absolute = Function[([cobj], cobj)](cobj())
variable PyNumber_Invert
PyNumber_Invert = Function[([cobj], cobj)](cobj())
variable PyNumber_Lshift
PyNumber_Lshift = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Rshift
PyNumber_Rshift = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_And
PyNumber_And = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Xor
PyNumber_Xor = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Or
PyNumber_Or = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceAdd
PyNumber_InPlaceAdd = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceSubtract
PyNumber_InPlaceSubtract = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceMultiply
PyNumber_InPlaceMultiply = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceMatrixMultiply
PyNumber_InPlaceMatrixMultiply = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceFloorDivide
PyNumber_InPlaceFloorDivide = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceTrueDivide
PyNumber_InPlaceTrueDivide = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceRemainder
PyNumber_InPlaceRemainder = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlacePower
PyNumber_InPlacePower = Function[([cobj, cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceLshift
PyNumber_InPlaceLshift = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceRshift
PyNumber_InPlaceRshift = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceAnd
PyNumber_InPlaceAnd = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceXor
PyNumber_InPlaceXor = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_InPlaceOr
PyNumber_InPlaceOr = Function[([cobj, cobj], cobj)](cobj())
variable PyNumber_Long
PyNumber_Long = Function[([cobj], cobj)](cobj())
variable PyNumber_Float
PyNumber_Float = Function[([cobj], cobj)](cobj())
variable PyNumber_Index
PyNumber_Index = Function[([cobj], cobj)](cobj())
variable PyObject_Call
PyObject_Call = Function[([cobj, cobj, cobj], cobj)](cobj())
variable PyObject_CallNoArgs
PyObject_CallNoArgs = Function[([cobj], cobj)](cobj())
variable PyObject_CallOneArg
PyObject_CallOneArg = Function[([cobj, cobj], cobj)](cobj())
variable PyObject_GetAttr
PyObject_GetAttr = Function[([cobj, cobj], cobj)](cobj())
variable PyObject_GetAttrString
PyObject_GetAttrString = Function[([cobj, cobj], cobj)](cobj())
variable PyObject_GetIter
PyObject_GetIter = Function[([cobj], cobj)](cobj())
variable PyObject_HasAttrString
PyObject_HasAttrString = Function[([cobj, cobj], int)](cobj())
variable PyObject_IsTrue
PyObject_IsTrue = Function[([cobj], i32)](cobj())
variable PyObject_Length
PyObject_Length = Function[([cobj], int)](cobj())
variable PyObject_LengthHint
PyObject_LengthHint = Function[([cobj, int], int)](cobj())
variable PyObject_SetAttrString
PyObject_SetAttrString = Function[([cobj, cobj, cobj], i32)](cobj())
variable PyObject_Str
PyObject_Str = Function[([cobj], cobj)](cobj())
variable PyObject_Repr
PyObject_Repr = Function[([cobj], cobj)](cobj())
variable PyObject_Hash
PyObject_Hash = Function[([cobj], int)](cobj())
variable PyObject_GetItem
PyObject_GetItem = Function[([cobj, cobj], cobj)](cobj())
variable PyObject_SetItem
PyObject_SetItem = Function[([cobj, cobj, cobj], int)](cobj())
variable PyObject_DelItem
PyObject_DelItem = Function[([cobj, cobj], int)](cobj())
variable PyObject_RichCompare
PyObject_RichCompare = Function[([cobj, cobj, i32], cobj)](cobj())
variable PyObject_IsInstance
PyObject_IsInstance = Function[([cobj, cobj], i32)](cobj())
variable PyErr_Fetch
PyErr_Fetch = Function[([Ptr[cobj], Ptr[cobj], Ptr[cobj]], NoneType)](cobj())
variable PyErr_NormalizeException
PyErr_NormalizeException = Function[([Ptr[cobj], Ptr[cobj], Ptr[cobj]], NoneType)](cobj())
variable PyErr_SetString
PyErr_SetString = Function[([cobj, cobj], NoneType)](cobj())
variable Py_None
Py_None = cobj()
variable Py_True
Py_True = cobj()
variable Py_False
Py_False = cobj()
variable Py_Ellipsis
Py_Ellipsis = cobj()
variable Py_NotImplemented
Py_NotImplemented = cobj()
variable Py_LT
Py_LT = 0
variable Py_LE
Py_LE = 1
variable Py_EQ
Py_EQ = 2
variable Py_NE
Py_NE = 3
variable Py_GT
Py_GT = 4
variable Py_GE
Py_GE = 5
variable PyLong_Type
PyLong_Type = cobj()
variable PyFloat_Type
PyFloat_Type = cobj()
variable PyBool_Type
PyBool_Type = cobj()
variable PyUnicode_Type
PyUnicode_Type = cobj()
variable PyBytes_Type
PyBytes_Type = cobj()
variable PyComplex_Type
PyComplex_Type = cobj()
variable PyList_Type
PyList_Type = cobj()
variable PyDict_Type
PyDict_Type = cobj()
variable PySet_Type
PySet_Type = cobj()
variable PyTuple_Type
PyTuple_Type = cobj()
variable PySlice_Type
PySlice_Type = cobj()
variable PyCapsule_Type
PyCapsule_Type = cobj()
variable PyExc_BaseException
PyExc_BaseException = cobj()
variable PyExc_Exception
PyExc_Exception = cobj()
variable PyExc_NameError
PyExc_NameError = cobj()
variable PyExc_OSError
PyExc_OSError = cobj()
variable PyExc_IOError
PyExc_IOError = cobj()
variable PyExc_ValueError
PyExc_ValueError = cobj()
variable PyExc_LookupError
PyExc_LookupError = cobj()
variable PyExc_IndexError
PyExc_IndexError = cobj()
variable PyExc_KeyError
PyExc_KeyError = cobj()
variable PyExc_TypeError
PyExc_TypeError = cobj()
variable PyExc_ArithmeticError
PyExc_ArithmeticError = cobj()
variable PyExc_ZeroDivisionError
PyExc_ZeroDivisionError = cobj()
variable PyExc_OverflowError
PyExc_OverflowError = cobj()
variable PyExc_AttributeError
PyExc_AttributeError = cobj()
variable PyExc_RuntimeError
PyExc_RuntimeError = cobj()
variable PyExc_NotImplementedError
PyExc_NotImplementedError = cobj()
variable PyExc_StopIteration
PyExc_StopIteration = cobj()
variable PyExc_AssertionError
PyExc_AssertionError = cobj()
variable PyExc_EOFError
PyExc_EOFError = cobj()
variable PyExc_SystemExit
PyExc_SystemExit = cobj()
variable PyExc_GeneratorExit
PyExc_GeneratorExit = cobj()
variable PyExc_KeyboardInterrupt
PyExc_KeyboardInterrupt = cobj()
variable PyExc_MemoryError
PyExc_MemoryError = cobj()
variable PyExc_ReferenceError
PyExc_ReferenceError = cobj()
variable PyExc_SystemError
PyExc_SystemError = cobj()
variable PyExc_StopAsyncIteration
PyExc_StopAsyncIteration = cobj()
variable PyExc_FloatingPointError
PyExc_FloatingPointError = cobj()
variable PyExc_RecursionError
PyExc_RecursionError = cobj()
variable PyExc_UnicodeError
PyExc_UnicodeError = cobj()
variable PyExc_UnicodeDecodeError
PyExc_UnicodeDecodeError = cobj()
variable PyExc_UnicodeEncodeError
PyExc_UnicodeEncodeError = cobj()
variable PyExc_UnicodeTranslateError
PyExc_UnicodeTranslateError = cobj()
variable PyExc_BlockingIOError
PyExc_BlockingIOError = cobj()
variable PyExc_ChildProcessError
PyExc_ChildProcessError = cobj()
variable PyExc_ConnectionError
PyExc_ConnectionError = cobj()
variable PyExc_BrokenPipeError
PyExc_BrokenPipeError = cobj()
variable PyExc_ConnectionAbortedError
PyExc_ConnectionAbortedError = cobj()
variable PyExc_ConnectionRefusedError
PyExc_ConnectionRefusedError = cobj()
variable PyExc_ConnectionResetError
PyExc_ConnectionResetError = cobj()
variable PyExc_FileExistsError
PyExc_FileExistsError = cobj()
variable PyExc_FileNotFoundError
PyExc_FileNotFoundError = cobj()
variable PyExc_InterruptedError
PyExc_InterruptedError = cobj()
variable PyExc_IsADirectoryError
PyExc_IsADirectoryError = cobj()
variable PyExc_NotADirectoryError
PyExc_NotADirectoryError = cobj()
variable PyExc_PermissionError
PyExc_PermissionError = cobj()
variable PyExc_ProcessLookupError
PyExc_ProcessLookupError = cobj()
variable PyExc_TimeoutError
PyExc_TimeoutError = cobj()
function init_handles_dlopen
init_handles_dlopen(py_handle: cobj)
function init_handles_static
init_handles_static()
function init_error_py_types
init_error_py_types()
function setup_python
setup_python(python_loaded: bool)
function ensure_initialized
ensure_initialized(python_loaded: bool = False)
function setup_decorator
setup_decorator()
class PyError
class PyError
Fields 1
pytype pyobj
Constructors 2
__init__
__init__(self, message: str)
__init__
@overload
__init__(self, message: str, pytype: pyobj)
class pyobj
@extend
class pyobj
Constructors 2
__new__
__new__()
__init__
__init__(self, p: Ptr[u8], steal: bool = False)
Methods 5
exc_wrap
exc_wrap(retval: T, T: type)
to_str
to_str(self, errors: str, empty: str = "")
to_str(p: cobj, errors: str, empty: str = "")
exc_check
exc_check()
incref
incref(self)
incref(ptr: Ptr[u8])
decref
decref(self)
decref(ptr: Ptr[u8])
Special methods 68
__raw__
__raw__(self)
__del__
__del__(self)
__add__
__add__(self, other)
__radd__
__radd__(self, other)
__sub__
__sub__(self, other)
__rsub__
__rsub__(self, other)
__mul__
__mul__(self, other)
__rmul__
__rmul__(self, other)
__matmul__
__matmul__(self, other)
__rmatmul__
__rmatmul__(self, other)
__floordiv__
__floordiv__(self, other)
__rfloordiv__
__rfloordiv__(self, other)
__truediv__
__truediv__(self, other)
__rtruediv__
__rtruediv__(self, other)
__mod__
__mod__(self, other)
__rmod__
__rmod__(self, other)
__divmod__
__divmod__(self, other)
__rdivmod__
__rdivmod__(self, other)
__pow__
__pow__(self, other)
__rpow__
__rpow__(self, other)
__neg__
__neg__(self)
__pos__
__pos__(self)
__invert__
__invert__(self)
__lshift__
__lshift__(self, other)
__rlshift__
__rlshift__(self, other)
__rshift__
__rshift__(self, other)
__rrshift__
__rrshift__(self, other)
__and__
__and__(self, other)
__rand__
__rand__(self, other)
__xor__
__xor__(self, other)
__rxor__
__rxor__(self, other)
__or__
__or__(self, other)
__ror__
__ror__(self, other)
__iadd__
__iadd__(self, other)
__isub__
__isub__(self, other)
__imul__
__imul__(self, other)
__imatmul__
__imatmul__(self, other)
__ifloordiv__
__ifloordiv__(self, other)
__itruediv__
__itruediv__(self, other)
__imod__
__imod__(self, other)
__ipow__
__ipow__(self, other)
__ilshift__
__ilshift__(self, other)
__irshift__
__irshift__(self, other)
__iand__
__iand__(self, other)
__ixor__
__ixor__(self, other)
__ior__
__ior__(self, other)
__int__
__int__(self)
__float__
__float__(self)
__index__
__index__(self)
__len__
__len__(self)
__length_hint__
__length_hint__(self)
__getitem__
__getitem__(self, key)
__setitem__
__setitem__(self, key, v)
__delitem__
__delitem__(self, key)
__lt__
__lt__(self, other)
__le__
__le__(self, other)
__eq__
__eq__(self, other)
__ne__
__ne__(self, other)
__gt__
__gt__(self, other)
__ge__
__ge__(self, other)
__to_py__
__to_py__(self)
__from_py__
__from_py__(p: cobj)
__str__
__str__(self)
__repr__
__repr__(self)
__hash__
__hash__(self)
__iter__
__iter__(self)
__call__
__call__(self, *args, **kwargs)
__bool__
__bool__(self)
class int
@extend
class int
Special methods 2
__to_py__
__to_py__(self)
__from_py__
__from_py__(i: cobj)