Utilities for writing code that runs on Python 2 and 3
add_metaclass |
Class decorator for creating a class with a metaclass. |
add_move |
Add an item to six.moves. |
b |
Byte literal |
byte2int |
|
create_bound_method |
|
exec_ |
Execute code in a namespace. |
get_unbound_function |
Get the function out of a possibly unbound function |
getexcobj |
|
indexbytes |
|
isstring |
|
iterbytes |
|
iteritems |
Return an iterator over the (key, value) pairs of a dictionary. |
iterkeys |
Return an iterator over the keys of a dictionary. |
iterlists |
Return an iterator over the (key, [values]) pairs of a dictionary. |
itervalues |
Return an iterator over the values of a dictionary. |
keys |
|
nextiter |
|
print_ |
The new-style print function. |
remove_move |
Remove item from six.moves. |
u |
Text literal |
values |
|
with_metaclass |
Create a base class with a metaclass. |
_LazyDescr |
|
_MovedItems |
Lazy loading of moved objects |
Iterator |
|
Module_six_moves_urllib |
Create a six.moves.urllib namespace that resembles the Python 3 namespace |
Module_six_moves_urllib_error |
Lazy loading of moved objects in six.moves.urllib_error |
Module_six_moves_urllib_parse |
Lazy loading of moved objects in six.moves.urllib_parse |
Module_six_moves_urllib_request |
Lazy loading of moved objects in six.moves.urllib_request |
Module_six_moves_urllib_response |
Lazy loading of moved objects in six.moves.urllib_response |
Module_six_moves_urllib_robotparser |
Lazy loading of moved objects in six.moves.urllib_robotparser |
MovedAttribute |
|
MovedModule |
add_metaclass
(metaclass)¶Class decorator for creating a class with a metaclass.
add_move
(move)¶Add an item to six.moves.
b
(s)¶Byte literal
byte2int
(bs)¶create_bound_method
(func, obj)¶exec_
(_code_, _globs_=None, _locs_=None)¶Execute code in a namespace.
get_unbound_function
(unbound)¶Get the function out of a possibly unbound function
getexcobj
()¶indexbytes
(buf, i)¶isstring
(obj)¶iterbytes
(buf)¶iteritems
(d, **kw)¶Return an iterator over the (key, value) pairs of a dictionary.
iterkeys
(d, **kw)¶Return an iterator over the keys of a dictionary.
iterlists
(d, **kw)¶Return an iterator over the (key, [values]) pairs of a dictionary.
itervalues
(d, **kw)¶Return an iterator over the values of a dictionary.
keys
(dictObj)¶nextiter
(container)¶print_
(*args, **kwargs)¶The new-style print function.
remove_move
(name)¶Remove item from six.moves.
u
(s)¶Text literal
values
(dictObj)¶with_metaclass
(meta, *bases)¶Create a base class with a metaclass.