module internal.python¶
Source: stdlib/internal/python.codon
internal.python¶Source: stdlib/internal/python.codon
Py_DecRef = Function[([cobj], NoneType)](cobj())¶Py_IncRef = Function[([cobj], NoneType)](cobj())¶Py_Initialize = Function[([], NoneType)](cobj())¶PyImport_AddModule = Function[([cobj], cobj)](cobj())¶PyImport_AddModuleObject = Function[([cobj], cobj)](cobj())¶PyImport_ImportModule = Function[([cobj], cobj)](cobj())¶PyRun_SimpleString = Function[([cobj], NoneType)](cobj())¶PyEval_GetGlobals = Function[([], cobj)](cobj())¶PyEval_GetBuiltins = Function[([], cobj)](cobj())¶PyOS_setsig = Function[([i32, cobj], cobj)](cobj())¶PyLong_AsLong = Function[([cobj], int)](cobj())¶PyLong_FromLong = Function[([int], cobj)](cobj())¶PyFloat_AsDouble = Function[([cobj], float)](cobj())¶PyFloat_FromDouble = Function[([float], cobj)](cobj())¶PyBool_FromLong = Function[([int], cobj)](cobj())¶PyBytes_AsString = Function[([cobj], cobj)](cobj())¶PyBytes_Size = Function[([cobj], int)](cobj())¶PyList_New = Function[([int], cobj)](cobj())¶PyList_Size = Function[([cobj], int)](cobj())¶PyList_GetItem = Function[([cobj, int], cobj)](cobj())¶PyList_SetItem = Function[([cobj, int, cobj], cobj)](cobj())¶PyDict_New = Function[([], cobj)](cobj())¶PyDict_Next = Function[([cobj, Ptr[int], Ptr[cobj], Ptr[cobj]], int)](cobj())¶PyDict_GetItem = Function[([cobj, cobj], cobj)](cobj())¶PyDict_GetItemString = Function[([cobj, cobj], cobj)](cobj())¶PyDict_SetItem = Function[([cobj, cobj, cobj], cobj)](cobj())¶PyDict_Size = Function[([cobj], int)](cobj())¶PySet_Add = Function[([cobj, cobj], cobj)](cobj())¶PySet_New = Function[([cobj], cobj)](cobj())¶PyTuple_New = Function[([int], cobj)](cobj())¶PyTuple_Size = Function[([cobj], int)](cobj())¶PyTuple_GetItem = Function[([cobj, int], cobj)](cobj())¶PyTuple_SetItem = Function[([cobj, int, cobj], NoneType)](cobj())¶PyUnicode_AsEncodedString = Function[([cobj, cobj, cobj], cobj)](cobj())¶PyUnicode_DecodeFSDefaultAndSize = Function[([cobj, int], cobj)](cobj())¶PyUnicode_FromString = Function[([cobj], cobj)](cobj())¶PyComplex_FromDoubles = Function[([float, float], cobj)](cobj())¶PyComplex_RealAsDouble = Function[([cobj], float)](cobj())¶PyComplex_ImagAsDouble = Function[([cobj], float)](cobj())¶PyIter_Next = Function[([cobj], cobj)](cobj())¶PySlice_New = Function[([cobj, cobj, cobj], cobj)](cobj())¶PySlice_Unpack = Function[([cobj, Ptr[int], Ptr[int], Ptr[int]], int)](cobj())¶PyCapsule_New = Function[([cobj, cobj, cobj], cobj)](cobj())¶PyCapsule_GetPointer = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Add = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Subtract = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Multiply = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_MatrixMultiply = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_FloorDivide = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_TrueDivide = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Remainder = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Divmod = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Power = Function[([cobj, cobj, cobj], cobj)](cobj())¶PyNumber_Negative = Function[([cobj], cobj)](cobj())¶PyNumber_Positive = Function[([cobj], cobj)](cobj())¶PyNumber_Absolute = Function[([cobj], cobj)](cobj())¶PyNumber_Invert = Function[([cobj], cobj)](cobj())¶PyNumber_Lshift = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Rshift = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_And = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Xor = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Or = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceAdd = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceSubtract = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceMultiply = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceMatrixMultiply = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceFloorDivide = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceTrueDivide = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceRemainder = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlacePower = Function[([cobj, cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceLshift = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceRshift = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceAnd = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceXor = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_InPlaceOr = Function[([cobj, cobj], cobj)](cobj())¶PyNumber_Long = Function[([cobj], cobj)](cobj())¶PyNumber_Float = Function[([cobj], cobj)](cobj())¶PyNumber_Index = Function[([cobj], cobj)](cobj())¶PyObject_Call = Function[([cobj, cobj, cobj], cobj)](cobj())¶PyObject_GetAttr = Function[([cobj, cobj], cobj)](cobj())¶PyObject_GetAttrString = Function[([cobj, cobj], cobj)](cobj())¶PyObject_GetIter = Function[([cobj], cobj)](cobj())¶PyObject_HasAttrString = Function[([cobj, cobj], int)](cobj())¶PyObject_IsTrue = Function[([cobj], int)](cobj())¶PyObject_Length = Function[([cobj], int)](cobj())¶PyObject_LengthHint = Function[([cobj, int], int)](cobj())¶PyObject_SetAttrString = Function[([cobj, cobj, cobj], cobj)](cobj())¶PyObject_Str = Function[([cobj], cobj)](cobj())¶PyObject_Repr = Function[([cobj], cobj)](cobj())¶PyObject_Hash = Function[([cobj], int)](cobj())¶PyObject_GetItem = Function[([cobj, cobj], cobj)](cobj())¶PyObject_SetItem = Function[([cobj, cobj, cobj], int)](cobj())¶PyObject_DelItem = Function[([cobj, cobj], int)](cobj())¶PyObject_RichCompare = Function[([cobj, cobj, i32], cobj)](cobj())¶PyObject_IsInstance = Function[([cobj, cobj], i32)](cobj())¶PyErr_Fetch = Function[([Ptr[cobj], Ptr[cobj], Ptr[cobj]], NoneType)](cobj())¶PyErr_NormalizeException = Function[([Ptr[cobj], Ptr[cobj], Ptr[cobj]], NoneType)](cobj())¶PyErr_SetString = Function[([cobj, cobj], NoneType)](cobj())¶Py_None = cobj()¶Py_True = cobj()¶Py_False = cobj()¶Py_Ellipsis = cobj()¶Py_NotImplemented = cobj()¶Py_LT = 0¶Py_LE = 1¶Py_EQ = 2¶Py_NE = 3¶Py_GT = 4¶Py_GE = 5¶PyLong_Type = cobj()¶PyFloat_Type = cobj()¶PyBool_Type = cobj()¶PyUnicode_Type = cobj()¶PyBytes_Type = cobj()¶PyComplex_Type = cobj()¶PyList_Type = cobj()¶PyDict_Type = cobj()¶PySet_Type = cobj()¶PyTuple_Type = cobj()¶PySlice_Type = cobj()¶PyCapsule_Type = cobj()¶PyExc_BaseException = cobj()¶PyExc_Exception = cobj()¶PyExc_NameError = cobj()¶PyExc_OSError = cobj()¶PyExc_IOError = cobj()¶PyExc_ValueError = cobj()¶PyExc_LookupError = cobj()¶PyExc_IndexError = cobj()¶PyExc_KeyError = cobj()¶PyExc_TypeError = cobj()¶PyExc_ArithmeticError = cobj()¶PyExc_ZeroDivisionError = cobj()¶PyExc_OverflowError = cobj()¶PyExc_AttributeError = cobj()¶PyExc_RuntimeError = cobj()¶PyExc_NotImplementedError = cobj()¶PyExc_StopIteration = cobj()¶PyExc_AssertionError = cobj()¶PyExc_EOFError = cobj()¶PyExc_SystemExit = cobj()¶init_handles_dlopen(py_handle: cobj)¶init_handles_static()¶init_error_py_types()¶setup_python(python_loaded: bool)¶ensure_initialized(python_loaded: bool = False)¶setup_decorator()¶PyError¶pytype: pyobj¶__init__(self, message: str)¶__init__(self, message: str, pytype: pyobj) @overload Function is overloaded ¶pyobj @extend Class is extended to add given methods ¶__new__()¶__raw__(self)¶__init__(self, p: Ptr[byte], steal: bool = False)¶__del__(self)¶__add__(self, other)¶__radd__(self, other)¶__sub__(self, other)¶__rsub__(self, other)¶__mul__(self, other)¶__rmul__(self, other)¶__matmul__(self, other)¶__rmatmul__(self, other)¶__floordiv__(self, other)¶__rfloordiv__(self, other)¶__truediv__(self, other)¶__rtruediv__(self, other)¶__mod__(self, other)¶__rmod__(self, other)¶__divmod__(self, other)¶__rdivmod__(self, other)¶__pow__(self, other)¶__rpow__(self, other)¶__neg__(self)¶__pos__(self)¶__invert__(self)¶__lshift__(self, other)¶__rlshift__(self, other)¶__rshift__(self, other)¶__rrshift__(self, other)¶__and__(self, other)¶__rand__(self, other)¶__xor__(self, other)¶__rxor__(self, other)¶__or__(self, other)¶__ror__(self, other)¶__iadd__(self, other)¶__isub__(self, other)¶__imul__(self, other)¶__imatmul__(self, other)¶__ifloordiv__(self, other)¶__itruediv__(self, other)¶__imod__(self, other)¶__ipow__(self, other)¶__ilshift__(self, other)¶__irshift__(self, other)¶__iand__(self, other)¶__ixor__(self, other)¶__ior__(self, other)¶__int__(self)¶__float__(self)¶__index__(self)¶__len__(self)¶__length_hint__(self)¶__getitem__(self, key)¶__setitem__(self, key, v)¶__delitem__(self, key)¶__lt__(self, other)¶__le__(self, other)¶__eq__(self, other)¶__ne__(self, other)¶__gt__(self, other)¶__ge__(self, other)¶__to_py__(self)¶__from_py__(p: cobj)¶__str__(self)¶__repr__(self)¶__hash__(self)¶__iter__(self)¶__call__(self, *args, **kwargs)¶__bool__(self)¶exc_wrap(_retval: T, T: type)¶to_str(self, errors: str, empty: str = "")¶to_str(p: cobj, errors: str, empty: str = "")¶exc_check()¶incref(self)¶incref(ptr: Ptr[byte])¶decref(self)¶decref(ptr: Ptr[byte])¶NoneType @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(x: cobj)¶int @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(i: cobj)¶float @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(d: cobj)¶bool @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(b: cobj)¶byte @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(c: cobj)¶str @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(s: cobj)¶complex @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(c: cobj)¶List[T] @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(v: cobj)¶Dict[K,V] @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(d: cobj)¶Set[K] @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(s: cobj)¶DynamicTuple[T] @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(t: cobj)¶Slice[T,U,V] @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(s: cobj)¶Optional[T] @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(o: cobj)¶ellipsis @extend Class is extended to add given methods ¶__to_py__(self)¶__from_py__(e: cobj)¶