Python Built-in Functions
All 73 built-in functions of Python 3.15, each with its signatures and the first sentence of the official documentation.
Signatures and sentences are quoted word for word and were checked against our saved copy of
docs.python.org, “Built-in Functions” — the Python 3.15.2 documentation (saved 2026-11-14), including that the list matches the page’s
own index. In a signature, / marks the end of positional-only parameters and * the start of keyword-only ones.
abs(number, /)- Return the absolute value of a number. Documentation
aiter(async_iterable, /)- Return an asynchronous iterator for an asynchronous iterable. Documentation
all(iterable, /)- Return True if all elements of the iterable are true (or if the iterable is empty). Documentation
awaitable anext(async_iterator, /)awaitable anext(async_iterator, default, /)- When awaited, return the next item from the given asynchronous iterator, or default if given and the iterator is exhausted. Documentation
any(iterable, /)- Return True if any element of the iterable is true. Documentation
ascii(object, /)- As repr(), return a string containing a printable representation of an object, but escape the non-ASCII characters in the string returned by repr() using \x, \u, or \U escapes. Documentation
bin(integer, /)- Convert an integer number to a binary string prefixed with “0b”. Documentation
class bool(object=False, /)- Return a Boolean value, i.e. one of True or False. Documentation
breakpoint(*args, **kws)- This function drops you into the debugger at the call site. Documentation
class bytearray(source=b'')class bytearray(source, encoding, errors='strict')- Return a new array of bytes. Documentation
class bytes(source=b'')class bytes(source, encoding, errors='strict')- Return a new “bytes” object which is an immutable sequence of integers in the range 0 <= x < 256. Documentation
callable(object, /)- Return True if the object argument appears callable, False if not. Documentation
chr(codepoint, /)- Return the string representing a character with the specified Unicode code point. Documentation
@classmethod- Transform a method into a class method. Documentation
compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1, *, module=None)- Compile the source into a code or AST object. Documentation
class complex(number=0, /)class complex(string, /)class complex(real=0, imag=0)- Convert a single string or number to a complex number, or create a complex number from real and imaginary parts. Documentation
delattr(object, name, /)- This is a relative of setattr(). Documentation
class dict(**kwargs)class dict(mapping, /, **kwargs)class dict(iterable, /, **kwargs)- Create a new dictionary. Documentation
dir()dir(object, /)- Without arguments, return the list of names in the current local scope. Documentation
divmod(a, b, /)- Take two (non-complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. Documentation
enumerate(iterable, start=0)- Return an enumerate object. Documentation
eval(source, /, globals=None, locals=None)- The source argument is parsed and evaluated as a Python expression (technically speaking, an expression list) using the globals and locals mappings as global and local namespace. Documentation
exec(source, /, globals=None, locals=None, *, closure=None)- This function supports dynamic execution of Python code. Documentation
filter(function, iterable, /)- Construct an iterator from those elements of iterable for which function is true. Documentation
class float(number=0.0, /)class float(string, /)- Return a floating-point number constructed from a number or a string. Documentation
format(value, format_spec='', /)- Convert a value to a “formatted” representation, as controlled by format_spec. Documentation
class frozendict(**kwargs)class frozendict(mapping, /, **kwargs)class frozendict(iterable, /, **kwargs)- Create a new frozen dictionary. Documentation
class frozenset(iterable=(), /)- Return a new frozenset object, optionally with elements taken from iterable. Documentation
getattr(object, name, /)getattr(object, name, default, /)- Return the value of the named attribute of object. Documentation
globals()- Return the dictionary implementing the current module namespace. Documentation
hasattr(object, name, /)- The arguments are an object and a string. Documentation
hash(object, /)- Return the hash value of the object (if it has one). Documentation
help()help(request)- Invoke the built-in help system. Documentation
hex(integer, /)- Convert an integer number to a lowercase hexadecimal string prefixed with “0x”. Documentation
id(object, /)- Return the “identity” of an object. Documentation
input()input(prompt, /)- If the prompt argument is present, it is written to standard output without a trailing newline. Documentation
class int(number=0, /)class int(string, /, base=10)- Return an integer object constructed from a number or a string, or return 0 if no arguments are given. Documentation
isinstance(object, classinfo, /)- Return True if the object argument is an instance of the classinfo argument, or of a (direct, indirect, or virtual) subclass thereof. Documentation
issubclass(cls, classinfo, /)- Return True if cls is a subclass (direct, indirect, or virtual) of classinfo. Documentation
iter(iterable, /)iter(callable, sentinel, /)- Return an iterator object. Documentation
len(object, /)- Return the length (the number of items) of an object. Documentation
class list(iterable=(), /)- Rather than being a function, list is actually a mutable sequence type, as documented in Lists and Sequence Types — list, tuple, range. Documentation
locals()- Return a mapping object representing the current local symbol table, with variable names as the keys, and their currently bound references as the values. Documentation
map(function, iterable, /, *iterables, strict=False)- Return an iterator that applies function to every item of iterable, yielding the results. Documentation
max(iterable, /, *, key=None)max(iterable, /, *, default, key=None)max(arg1, arg2, /, *args, key=None)- Return the largest item in an iterable or the largest of two or more arguments. Documentation
class memoryview(object)- Return a “memory view” object created from the given argument. Documentation
min(iterable, /, *, key=None)min(iterable, /, *, default, key=None)min(arg1, arg2, /, *args, key=None)- Return the smallest item in an iterable or the smallest of two or more arguments. Documentation
next(iterator, /)next(iterator, default, /)- Retrieve the next item from the iterator by calling its __next__() method. Documentation
class object- This is the ultimate base class of all other classes. Documentation
oct(integer, /)- Convert an integer number to an octal string prefixed with “0o”. Documentation
open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)- Open file and return a corresponding file object. Documentation
ord(character, /)- Return the ordinal value of a character. Documentation
pow(base, exp, mod=None)- Return base to the power exp; if mod is present, return base to the power exp, modulo mod (computed more efficiently than pow(base, exp) % mod). Documentation
print(*objects, sep=' ', end='\n', file=None, flush=False)- Print objects to the text stream file, separated by sep and followed by end. Documentation
class property(fget=None, fset=None, fdel=None, doc=None)- Return a property attribute. Documentation
class range(stop, /)class range(start, stop, step=1, /)- Rather than being a function, range is actually an immutable sequence type, as documented in Ranges and Sequence Types — list, tuple, range. Documentation
repr(object, /)- Return a string containing a printable representation of an object. Documentation
reversed(object, /)- Return a reverse iterator. Documentation
round(number, ndigits=None)- Return number rounded to ndigits precision after the decimal point. Documentation
class set(iterable=(), /)- Return a new set object, optionally with elements taken from iterable. Documentation
setattr(object, name, value, /)- This is the counterpart of getattr(). Documentation
class sentinel(name, /, *, repr=None)- Return a new unique sentinel object. Documentation
class slice(stop, /)class slice(start, stop, step=None, /)- Return a slice object representing the set of indices specified by range(start, stop, step). Documentation
sorted(iterable, /, *, key=None, reverse=False)- Return a new sorted list from the items in iterable. Documentation
@staticmethod- Transform a method into a static method. Documentation
class str(*, encoding='utf-8', errors='strict')class str(object)class str(object, encoding, errors='strict')class str(object, *, errors)- Return a str version of object. Documentation
sum(iterable, /, start=0)- Sums start and the items of an iterable from left to right and returns the total. Documentation
class superclass super(type, object_or_type=None, /)- Return a proxy object that delegates method calls to a parent or sibling class of type. Documentation
class tuple(iterable=(), /)- Rather than being a function, tuple is actually an immutable sequence type, as documented in Tuples and Sequence Types — list, tuple, range. Documentation
class type(object, /)class type(name, bases, dict, /, **kwargs)- With one argument, return the type of an object. Documentation
vars()vars(object, /)- Return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute. Documentation
zip(*iterables, strict=False)- Iterate over several iterables in parallel, producing tuples with an item from each one. Documentation
__import__(name, globals=None, locals=None, fromlist=(), level=0)- This function is invoked by the import statement. Documentation
From the source page: “© Copyright 2001 Python Software Foundation. This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.” License texts: History and License (Python Software Foundation License Version 2; Zero Clause BSD License).