Skip to content

module internal.internal

Source: stdlib/internal/internal.codon


Function[T,TR] @extend Class is extended to add given methods

Magic methods

__new__(what: Ptr[byte]) @pure Function has no side effects and returns same value for same inputs @overload Function is overloaded @llvm Function is implemented with inline LLVM IR

ret ptr %what

__new__(what: Function[T, TR]) @overload Function is overloaded

__raw__(self) @pure Function has no side effects and returns same value for same inputs @llvm Function is implemented with inline LLVM IR

ret ptr %self

__repr__(self)

__call_internal__(self: Function[T, TR], args: T) @llvm Function is implemented with inline LLVM IR

noop  # compiler will populate this one

__call__(self, *args)


PyObject @tuple Class is named tuple (cannot write fields)

Fields

refcnt: int

pytype: Ptr[byte]


PyWrapper[T] @tuple Class is named tuple (cannot write fields)

Fields

head: PyObject

data: T

T: type


RTTI @extend Class is extended to add given methods

Magic methods

__new__()

__init__(self, i: int)

__raw__(self)


ellipsis @extend Class is extended to add given methods

Magic methods

__repr__(self)

__eq__(self, other: ellipsis)

__ne__(self, other: ellipsis)

__hash__(self)


Super[__T__] @extend Class is extended to add given methods

Magic methods

__repr__(self)


TypeWrap[T] @extend Class is extended to add given methods

Properties

__name__ @property Method is a class property

Magic methods

__new__(T: type)

__call_no_self__(*args, **kwargs)

__call__(self, *args, **kwargs)

__repr__(self)

__name__(self) @property Method is a class property


Capsule[T] @extend Class is extended to add given methods

Magic methods

__init__(self, val: T)


Callable[T,TR] @extend Class is extended to add given methods

Magic methods

__new__(fn: Function[Ptr[byte], T, TR], data: Ptr[byte])

__new__(fn: Function[Ptr[byte], T, TR], data: Partial[M, PT, K, F], T: type, TR: type, M: Literal[str], PT: type, F: type, K: type) @overload Function is overloaded

__new__(fn: Function[Ptr[byte], T, TR], data: Function[T, TR]) @overload Function is overloaded

__new__(fn: Function[T, TR]) @overload Function is overloaded

__call__(self, *args)