abs ((number) -> number) |
Return the absolute value of the argument. |
all ((iterable) -> bool) |
Return True if bool(x) is True for all values x in the iterable. |
any ((iterable) -> bool) |
Return True if bool(x) is True for any x in the iterable. |
apply ((object[, args[, kwargs]]) -> value) |
Call a callable object with positional arguments taken from the tuple args, and keyword arguments taken from the optional dictionary kwargs. |
bin ((number) -> string) |
Return the binary representation of an integer or long integer. |
callable ((object) -> bool) |
Return whether the object is callable (i.e., some kind of function). |
chr ((i) -> character) |
Return a string of one character with ordinal i; 0 <= i < 256. |
cmp ((x, y) -> integer) |
Return negative if x<y, zero if x==y, positive if x>y. |
coerce (x, y) -> (x1, y1) |
Return a tuple consisting of the two numeric arguments converted to a common type, using the same rules as used by arithmetic operations. |
compile ((source, filename, mode[, flags[, ...) |
Compile the source string (a Python module, statement or expression) into a code object that can be executed by the exec statement or eval(). |
delattr (object, name) |
Delete a named attribute on an object; delattr(x, ‘y’) is equivalent to ``del x.y’‘. |
dir (([object]) -> list of strings) |
If called without an argument, return the names in the current scope. |
divmod (x, y) -> (quotient, remainder) |
Return the tuple (x//y, x%y). |
eval ((source[, globals[, locals]]) -> value) |
Evaluate the source in the context of globals and locals. |
execfile (filename[, globals[, locals]]) |
Read and execute a Python script from a file. |
filter ((function or None, sequence) -> list, ...) |
Return those items of sequence for which function(item) is true. |
format ((value[, format_spec]) -> string) |
Returns value.__format__(format_spec) |
getattr ((object, name[, default]) -> value) |
Get a named attribute from an object; getattr(x, ‘y’) is equivalent to x.y. |
globals (() -> dictionary) |
Return the dictionary containing the current scope’s global variables. |
hasattr ((object, name) -> bool) |
Return whether the object has an attribute with the given name. |
hash ((object) -> integer) |
Return a hash value for the object. |
hex ((number) -> string) |
Return the hexadecimal representation of an integer or long integer. |
id ((object) -> integer) |
Return the identity of an object. |
input (([prompt]) -> value) |
Equivalent to eval(raw_input(prompt)). |
intern ((string) -> string) |
``Intern’’ the given string. This enters the string in the (global) |
isinstance ((object, ...) |
Return whether an object is an instance of a class or of a subclass thereof. |
issubclass ((C, B) -> bool) |
Return whether class C is a subclass (i.e., a derived class) of class B. |
iter ((collection) -> iterator) |
iter(callable, sentinel) -> iterator |
len ((object) -> integer) |
Return the number of items of a sequence or collection. |
locals (() -> dictionary) |
Update and return a dictionary containing the current scope’s local variables. |
map ((function, sequence[, sequence, ...) |
Return a list of the results of applying the function to the items of the argument sequence(s). |
max ((iterable[[, key]) |
max(a, b, c, ...[, key=func]) -> value |
min ((iterable[[, key]) |
min(a, b, c, ...[, key=func]) -> value |
next (iterator[, default]) |
Return the next item from the iterator. |
oct ((number) -> string) |
Return the octal representation of an integer or long integer. |
open ((name[, mode[, buffering]]) -> file object) |
Open a file using the file() type, returns a file object. |
ord ((c) -> integer) |
Return the integer ordinal of a one-character string. |
pow ((x, y[, z]) -> number) |
With two arguments, equivalent to x**y. |
print (value, ...[, sep, end, file]) |
Prints the values to a stream, or to sys.stdout by default. |
range ((stop) -> list of integers) |
range(start, stop[, step]) -> list of integers |
raw_input (([prompt]) -> string) |
Read a string from standard input. |
reduce ((function, sequence[, initial]) -> value) |
Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. |
reload ((module) -> module) |
Reload the module. |
repr ((object) -> string) |
Return the canonical string representation of the object. |
round ((number[, ...) |
Round a number to a given precision in decimal digits (default 0 digits). |
setattr (object, name, value) |
Set a named attribute on an object; setattr(x, ‘y’, v) is equivalent to ``x.y = v’‘. |
sorted |
sorted(iterable, cmp=None, key=None, reverse=False) –> new sorted list |
sum ((sequence[, start]) -> value) |
Return the sum of a sequence of numbers (NOT strings) plus the value of parameter ‘start’ (which defaults to 0). |
unichr ((i) -> Unicode character) |
Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff. |
vars (([object]) -> dictionary) |
Without arguments, equivalent to locals(). |
zip ((seq1 [, seq2 [...]]) -> [(seq1[0], ...) |
Return a list of tuples, where each tuple contains the i-th element from each of the argument sequences. |