Documentation Reference Number: #0008
Python Standard Library
I. Description
The Python standard library is a set of modules and functions which are installed alongside the Python interpreter. The standard library is always available to the user. You do not need to import anything in order to use these functions/classes.
II. Built-In Functions
These functions are built in to Python. You do not need to import a module in order to call these functions. You may call these functions at any time.
Built-In Functions | ||
---|---|---|
Function Return Type | Function Name | Function Description |
IntegerFloating PointObject | abs(x) | |
Asynchronous Iterator | aiter(async_iterable) | |
Boolean | all(iterable) | |
Asynchronous Iterator<T>Default | anext(async_iterator) | |
Asynchronous Iterator<T>Default | anext(async_iterator, default) | |
Boolean | any(iterable) | |
String | ascii(object) | |
String | bin(x) | |
Boolean | bool() | |
void | breakpoint(*args, **keyword_args) | |
array | bytearray(source=b'') | |
array | bytearray(source, encoding) | |
array | bytearray(source, encoding, errors) | |
bytes | bytes(source=b'') | |
bytes | bytes(source, encoding) | |
bytes | bytes(source, encoding, errors) | |
Boolean | callable(object) | |
String | chr(int i) | |
AST | compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1) | |
complex | complex(number=0, /) | |
complex | complex(string, /) | |
complex | complex(real=0, imag=0) | |
void | delattr(object, name) | |
dict() | ||
dir() | ||
divmod() | ||
enumerate() | ||
eval() | ||
exec() | ||
filter() | ||
float() | ||
format() | ||
frozenset() | ||
getattr() | ||
globals() | ||
hasattr() | ||
hash() | ||
help() | ||
hex() | ||
id() | ||
input() | ||
int() | ||
isinstance() | ||
issubclass() | ||
iter() | ||
len() | ||
list() | ||
locals() | ||
map() | ||
max() | ||
memoryview() | ||
min() | ||
next() | ||
object() | ||
oct() | ||
open() | ||
ord() | ||
pow() | ||
print() | ||
property() | ||
range() | ||
repr() | ||
reversed() | ||
round() | ||
set() | ||
setattr() | ||
slice() | ||
sorted() | ||
staticmethod() | ||
str() | ||
sum() | ||
super() | ||
tuple() | ||
type() | ||
vars() | ||
zip() | ||
__import__() |