future_builtins

This module provides functions that will be builtins in Python 3.0, but that conflict with builtins that already exist in Python 2.x.

Functions:

ascii(arg) – Returns the canonical string representation of an object. filter(pred, iterable) – Returns an iterator yielding those items of

iterable for which pred(item) is true.

hex(arg) – Returns the hexadecimal representation of an integer. map(func, *iterables) – Returns an iterator that computes the function

using arguments from each of the iterables.

oct(arg) – Returns the octal representation of an integer. zip(iter1 [,iter2 [...]]) – Returns a zip object whose .next() method

returns a tuple where the i-th element comes from the i-th iterable argument.

The typical usage of this module is to replace existing builtins in a module’s namespace:

from future_builtins import ascii, filter, map, hex, oct, zip

Functions

ascii((object) -> string) Return the same as repr().
hex((number) -> string) Return the hexadecimal representation of an integer or long integer.
oct((number) -> string) Return the octal representation of an integer or long integer.

Classes

filter alias of ifilter
map alias of imap
zip alias of izip