1. Built-in Functions
The Python interpreter has a number of functions built into it that are always
available. They are listed here in alphabetical order.
Some of these functions like abs are covered in the Pyccel beta version, while others like all will be covered in the Pyccel lambda version. Finally, there are also some functions that are under the Pyccel restriction and will not be covered.
-
abs
(x)
Pyccel alpha,
Python documentation for abs
-
all
(x)
Pyccel lambda,
Python documentation for all
-
any
(x)
Pyccel lambda,
Python documentation for any
-
basestring
(x)
Pyccel restriction,
Python documentation for basestring
-
bin
(x)
Pyccel restriction,
Python documentation for bin
-
bool
(x)
Pyccel alpha,
Python documentation for bool
-
bytearray
(x)
Pyccel restriction,
Python documentation for bytearray
-
callable
(object)
Pyccel lambda,
Pyccel omicron,
Python documentation for callable
-
chr
(i)
Pyccel alpha,
Python documentation for chr
-
classmethod
(function)
Pyccel omicron,
Python documentation for classmethod
-
cmp
(x, y)
Pyccel beta,
Python documentation for cmp
-
compile
(source, filename, mode[, flags[, dont_inherit]])
Pyccel beta,
Python documentation for compile
-
class
complex
([real[, imag]])
Pyccel alpha,
Python documentation for class
-
delattr
(object, name)
Pyccel restriction,
Python documentation for delattr
-
class
dict
(**kwarg)
-
class
dict
(mapping, **kwarg)
-
class
dict
(iterable, **kwarg)
Pyccel restriction,
Python documentation for dict
-
divmod
(a, b)
Pyccel alpha,
Python documentation for divmod
-
enumerate
(sequence, start=0)
Pyccel lambda,
Python documentation for enumerate
-
eval
(expression[, globals[, locals]])
Pyccel beta,
Pyccel lambda,
Python documentation for eval
-
execfile
(filename[, globals[, locals]])
Pyccel beta,
Python documentation for execfile
-
file
(name[, mode[, buffering]])
Pyccel restriction,
Python documentation for file
-
filter
(function, iterable)
Pyccel lambda,
Python documentation for filter
-
class
float
([x])
Pyccel alpha,
Python documentation for float
-
format
(value[, format_spec])
Pyccel beta,
Python documentation for format
-
class
frozenset
([iterable])
-
:noindex:
Pyccel restriction,
Python documentation for frozenset
-
getattr
(object, name[, default])
Pyccel restriction,
Python documentation for file
-
globals
()
Pyccel restriction,
Python documentation for globals
-
hasattr
(object, name)
Pyccel restriction,
Python documentation for hasattr
-
hash
(object)
Pyccel restriction,
Python documentation for hash
-
help
([object])
Pyccel restriction,
Python documentation for help
-
hex
(x)
Pyccel restriction,
Python documentation for hex
-
id
(object)
Pyccel beta,
Python documentation for id
-
input
([prompt])
Pyccel beta,
Python documentation for input
-
class
int
(x=0)
-
class
int
(x, base=10)
Pyccel alpha,
Python documentation for int
-
isinstance
(object, classinfo)
Pyccel omicron,
Python documentation for isinstance
-
issubclass
(class, classinfo)
Pyccel restriction,
Python documentation for issubclass
-
iter
(o[, sentinel])
Pyccel lambda,
Python documentation for iter
-
len
(s)
Pyccel alpha,
Python documentation for len
-
class
list
([iterable])
-
:noindex:
Pyccel alpha,
Pyccel lambda,
Python documentation for list
-
class
long
(x=0)
-
class
long
(x, base=10)
Pyccel beta,
Python documentation for long
-
locals
()
Pyccel restriction,
Python documentation for locals
-
map
(function, iterable, ...)
Pyccel lambda,
Python documentation for map
-
max
(iterable[, key])
-
max
(arg1, arg2, *args[, key])
Pyccel alpha,
Pyccel lambda,
Python documentation for max
-
memoryview
(obj)
-
:noindex:
Pyccel restriction,
Python documentation for memoryview
-
min
(iterable[, key])
-
min
(arg1, arg2, *args[, key])
Pyccel alpha,
Pyccel lambda,
Python documentation for min
-
next
(iterator[, default])
Pyccel lambda,
Python documentation for next
-
class
object
Pyccel beta,
Pyccel omicron,
Python documentation for object
-
oct
(x)
Pyccel restriction,
Python documentation for oct
-
open
(name[, mode[, buffering]])
Pyccel beta,
Python documentation for open
-
ord
(c)
Pyccel restriction,
Python documentation for ord
-
print
(*objects, sep=' ', end='\n', file=sys.stdout)
Pyccel alpha,
Python documentation for print
-
pow
(x, y[, z])
Pyccel alpha,
Python documentation for pow
-
class
property
([fget[, fset[, fdel[, doc]]]])
Pyccel omicron,
Python documentation for property
-
range
(stop)
-
range
(start, stop[, step])
Pyccel alpha,
Python documentation for range
-
raw_input
([prompt])
Pyccel beta,
Python documentation for raw_input
-
reduce
(function, iterable[, initializer])
Pyccel lambda,
Python documentation for reduce
-
reload
(module)
Pyccel restriction,
Python documentation for reload
-
repr
(object)
Pyccel beta,
Python documentation for repr
-
reversed
(seq)
Pyccel lambda,
Python documentation for reversed
-
round
(number[, ndigits])
Pyccel alpha,
Python documentation for round
-
class
set
([iterable])
-
:noindex:
Pyccel lambda,
Python documentation for func-set
-
setattr
(object, name, value)
Pyccel restriction,
Python documentation for setattr
-
class
slice
(stop)
-
class
slice
(start, stop[, step])
Pyccel alpha,
Python documentation for slice
-
sorted
(iterable[, cmp[, key[, reverse]]])
Pyccel lambda,
Python documentation for sorted
-
staticmethod
(function)
Pyccel omicron,
Python documentation for staticmethod
-
class
str
(object='')
Pyccel beta,
Python documentation for str
-
sum
(iterable[, start])
Pyccel lambda,
Python documentation for sum
-
super
(type[, object-or-type])
Pyccel omicron,
Python documentation for super
-
tuple
([iterable])
Pyccel alpha,
Pyccel lambda,
Python documentation for tuple
-
class
type
(object)
-
class
type
(name, bases, dict)
Pyccel omicron,
Python documentation for type
-
unichr
(i)
Pyccel restriction,
Python documentation for unichr
-
unicode
(object='')
-
unicode
(object[, encoding[, errors]])
Pyccel restriction,
Python documentation for unicode
-
vars
([object])
Pyccel restriction,
Python documentation for vars
-
xrange
(stop)
-
xrange
(start, stop[, step])
Pyccel alpha,
Python documentation for xrange
-
zip
([iterable, ...])
Pyccel lambda,
Python documentation for zip
-
__import__
(name[, globals[, locals[, fromlist[, level]]]])
Pyccel restriction,
Python documentation for __import__
2. Non-essential Built-in Functions
There are several built-in functions that are no longer essential to learn, know
or use in modern Python programming. They have been kept here to maintain
backwards compatibility with programs written for older versions of Python.
Python programmers, trainers, students and book writers should feel free to
bypass these functions without concerns about missing something important.
-
apply
(function, args[, keywords])
Pyccel restriction,
Python documentation for apply
-
buffer
(object[, offset[, size]])
Pyccel restriction,
Python documentation for buffer
-
coerce
(x, y)
Pyccel restriction,
Python documentation for coercive
-
intern
(string)
Pyccel restriction,
Python documentation for intern