Skip to main content

internal.builtin

Standard library Module View source
function getattr
getattr[attr: Literal[str], typ: type = NoneType](obj, default, /)
@overload
getattr[attr: Literal[str], type: type = NoneType](obj, /)
function id
id(x, /) -> int
function print
print(*args, sep: str = " ", end: str = "\n", file = None, flush: bool = False)
function input
input(prompt: str = "", /) -> str
function min
min(*args, key = None, default = None)
function max
max(*args, key = None, default = None)
function len
len(x, /) -> int
function iter
iter(x, /)
function abs
abs(x, /)
function hash
hash(x, /) -> int
function ord
ord(character: str, /) -> int
function divmod
divmod(a, b, /)
function chr
chr(codepoint: int, /) -> str
function next
next[T: type](g: Generator[T], default: Optional[T] = None, /) -> T
function any
any[T: type](x: Generator[T], /) -> bool
function all
all[T: type](x: Generator[T], /) -> bool
function zip
zip(*args)
function filter
filter[T: type](f: CallableTrait[([T], bool)], x: Generator[T], /) -> Generator[T]
function map
map(f, /, *args)
function enumerate
enumerate(x, start: int = 0)
function echo
echo(x)
function reversed
reversed(x, /)
function round
round(x, ndigits = None)
function sum
sum(x, /, start = 0)
function repr
repr(x, /)
function bin
bin(n, /)
function oct
oct(n, /)
function hex
hex(n, /)
function format
format(value, format_spec: str = "", /)
function pow
pow(base: float, exp: float)
@overload
pow(base: int, exp: int, mod: Optional[int] = None)
function cast
@inline
cast[U: type](obj) -> U