internal.core

Standard library module View source
variable int
int = Int[64]
variable i1
i1 = Int[1]
variable i8
i8 = Int[8]
variable i16
i16 = Int[16]
variable i32
i32 = Int[32]
variable i64
i64 = Int[64]
variable i128
i128 = Int[128]
variable u1
u1 = UInt[1]
variable u8
u8 = UInt[8]
variable u16
u16 = UInt[16]
variable u32
u32 = UInt[32]
variable u64
u64 = UInt[64]
variable u128
u128 = UInt[128]
variable byte
byte = UInt[8]
variable cobj
cobj = Ptr[u8]
class Tuple
@tuple
class Tuple
Constructors 1
__new__
@llvm
__new__()
ret {} {}
Special methods 23
__add__
__add__(self: __SELF__, obj, __SELF__: type)
__mul__
__mul__(self: __SELF__, n: Literal[int], __SELF__: type)
__contains__
__contains__(self: __SELF__, obj, __SELF__: type)
__getitem__
__getitem__(self: __SELF__, idx: int, __SELF__: type)
__iter__
__iter__(self: __SELF__, __SELF__: type)
__hash__
__hash__(self: __SELF__, __SELF__: type)
__repr__
__repr__(self: __SELF__, __SELF__: type)
__len__
__len__(self: __SELF__, __SELF__: type)
__eq__
__eq__(self: __SELF__, obj: __SELF__, __SELF__: type)
__ne__
__ne__(self: __SELF__, obj: __SELF__, __SELF__: type)
__gt__
__gt__(self: __SELF__, obj: __SELF__, __SELF__: type)
__ge__
__ge__(self: __SELF__, obj: __SELF__, __SELF__: type)
__lt__
__lt__(self: __SELF__, obj: __SELF__, __SELF__: type)
__le__
__le__(self: __SELF__, obj: __SELF__, __SELF__: type)
__pickle__
__pickle__(self: __SELF__, dest: Ptr[u8], __SELF__: type)
__unpickle__
__unpickle__(src: Ptr[u8], __SELF__: type)
__to_py__
__to_py__(self: __SELF__, __SELF__: type)
__from_py__
__from_py__(src: Ptr[u8], __SELF__: type)
__to_gpu__
__to_gpu__(self: __SELF__, cache, __SELF__: type)
__from_gpu__
__from_gpu__(self: __SELF__, other: __SELF__, __SELF__: type)
__from_gpu_new__
__from_gpu_new__(other: __SELF__, __SELF__: type)
__tuplesize__
__tuplesize__(self: __SELF__, __SELF__: type)
__bool__
__bool__(self: __SELF__, __SELF__: type)
function pure
@__attribute__
pure()
function derives
@__attribute__
derives()
variable Ellipsis
Ellipsis = ellipsis()
class Import
@tuple
class Import[file, name]
Fields 3
loaded bool
file Literal[str]
name Literal[str]
Constructors 1
__new__
@pure @derives @llvm
__new__(loaded: bool, file: Literal[str], name: Literal[str])
%0 = insertvalue { {=bool} } undef, {=bool} %loaded, 0
ret { {=bool} } %0
function compile_error
@__generated__
compile_error(msg: Literal[str])
function isinstance
@__generated__
isinstance(obj, what)
function overload
@__attribute__
overload()
function hasattr
@__generated__
hasattr(obj, attr: Literal[str], *args, **kwargs)
function hasattr_dynamic
@__generated__
hasattr_dynamic(obj, attr: Literal[str], *args, **kwargs)
function setattr
@__generated__
setattr(obj, attr: Literal[str], what)
function super
@__generated__
super()
function superf
@__generated__
superf(*args)

Special handling

class NamedTuple
@tuple
class NamedTuple[N, T]
Fields 3
args T
N Literal[int]
T type
Constructors 1
__new__
@pure @derives @llvm
__new__(args: T = (), N: Literal[int] = 0, T: type)
%0 = insertvalue { {=T} } undef, {=T} %args, 0
ret { {=T} } %0
class Partial
@tuple
class Partial[M, T, K, F]
Fields 6
args T
kwargs K
M Literal[str]
T type
K type
F type
Constructors 1
__new__
@pure @derives @llvm
__new__(args: T, kwargs: K, M: Literal[str], F: type, T: type, K: type)
%0 = insertvalue { {=T}, {=K} } undef, {=T} %args, 0
%1 = insertvalue { {=T}, {=K} } %0, {=K} %kwargs, 1
ret { {=T}, {=K} } %1
class Coroutine
@tuple
class Coroutine[T]
Fields 1
T type
Special methods 2
__raw__
@pure @derives @llvm
__raw__(self)
ret ptr %self
__await__
@pure @derives @llvm
__await__(self)
ret ptr %self
class AsyncGenerator
@tuple
class AsyncGenerator[T]
Fields 1
T type
Special methods 1
__raw__
@pure @derives @llvm
__raw__(self)
ret ptr %self