Edge Python ships with 41 built-in functions. They’re first-class values: pass them around, store them in containers, alias them.Documentation Index
Fetch the complete documentation index at: https://edgepython.com/llms.txt
Use this file to discover all available pages before exploring further.
Output
Output
print(*args) — write space-separated values to stdout, followed by a newline.
Output
input
input() — read a line from stdin. Always returns an empty string in sandbox mode; there’s no host stdin in WebAssembly.
Numeric
abs
abs(x) — absolute value.
Output
round
round(x) or round(x, n) — banker’s rounding (ties go to even).
Output
min, max
Variadic, or accepting a single iterable.Output
sum
sum(iterable) or sum(iterable, start).
Output
pow
pow(base, exp) or pow(base, exp, mod) for modular exponentiation.
Output
divmod
divmod(a, b) — (a // b, a % b) as a tuple.
Output
bin, oct, hex
Format an integer as a base-2, base-8, or base-16 string with prefix.Output
Type conversion
int
Output
float
Output
str
Output
bool
Output
list, tuple, set, dict
Output
chr, ord
Convert between integer code points and single-character strings.Output
Sequence
len
Output
range
range(stop), range(start, stop), range(start, stop, step). Lazy.
Output
sorted
Returns a new sorted list.Output
reversed
Returns a list of elements in reverse order.Output
enumerate
Pairs each element with its index.Output
zip
Pairs elements from N iterables, truncating to the shortest.Output
Logical reductions
all, any
Output
Type and identity
type
Output
isinstance
Output
callable
Output
id, hash
id(x) returns a unique identifier for the value. hash(x) returns a hash for hashable values.
Output
Output
Representation
repr
The “developer-readable” form. Quotes strings; renders containers with their elements asrepr.
Output
format
format(value) returns the display form. format(value, spec) is accepted but the spec is currently ignored — output is identical to display.
Output
ascii
Likerepr, but escapes non-ASCII characters with \uXXXX / \UXXXXXXXX.
Output
Attribute access
getattr and hasattr work against the built-in method tables on strings, lists, and dicts. Edge Python has no class system, so user-defined attributes don’t apply.
getattr
Output
hasattr
Output
Built-in summary
| Function | Arity | Notes |
|---|---|---|
print | variadic | space-separated, newline |
input | 0 | empty string in sandbox |
abs | 1 | int / float / BigInt |
round | 1 or 2 | banker’s rounding |
min | variadic | or single iterable |
max | variadic | or single iterable |
sum | 1 or 2 | optional start |
pow | 2 or 3 | 3-arg = modular |
divmod | 2 | returns (q, r) |
bin | 1 | 0b... prefix |
oct | 1 | 0o... prefix |
hex | 1 | 0x... prefix |
int | 0 or 1 | parse / truncate |
float | 0 or 1 | parse / cast |
str | 0 or 1 | display form |
bool | 0 or 1 | truthiness |
list | 0 or 1 | from any iterable |
tuple | 0 or 1 | from any iterable |
set | 0 or 1 | from any iterable |
dict | variadic | kwargs and/or single mapping |
chr | 1 | int -> 1-char string |
ord | 1 | 1-char string -> int |
len | 1 | element count |
range | 1, 2, or 3 | lazy integer sequence |
sorted | 1 | new sorted list |
reversed | 1 | reversed as list |
enumerate | 1 | (index, value) pairs |
zip | variadic | parallel iteration |
all | 1 | logical AND over iterable |
any | 1 | logical OR over iterable |
type | 1 | type name |
isinstance | 2 | type or tuple of types |
callable | 1 | True for functions, lambdas, types, builtins |
id | 1 | unique identifier |
hash | 1 | hash for hashable values |
repr | 1 | developer-readable form |
format | 1 or 2 | format spec currently ignored |
ascii | 1 | repr with non-ASCII escapes |
getattr | 2 or 3 | bound method or default |
hasattr | 2 | True if method exists |