Utilities for writing code that runs on Python 2 and 3
Class |
|
Create a six.moves.urllib namespace that resembles the Python 3 namespace |
Class |
|
Lazy loading of moved objects in six.moves.urllib_error |
Class |
|
Lazy loading of moved objects in six.moves.urllib_parse |
Class |
|
Lazy loading of moved objects in six.moves.urllib_request |
Class |
|
Lazy loading of moved objects in six.moves.urllib_response |
Class |
|
Lazy loading of moved objects in six.moves.urllib_robotparser |
Class |
|
Undocumented |
Class |
|
Undocumented |
Function | add |
Class decorator for creating a class with a metaclass. |
Function | add |
Add an item to six.moves. |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | b |
Undocumented |
Function | create |
Undocumented |
Function | ensure |
Coerce **s** to six.binary_type. |
Function | ensure |
Coerce *s* to `str`. |
Function | ensure |
Coerce *s* to six.text_type. |
Function | get |
Undocumented |
Function | iteritems |
Undocumented |
Function | iterkeys |
Undocumented |
Function | iterlists |
Undocumented |
Function | itervalues |
Undocumented |
Function | print_ |
Undocumented |
Function | python |
A class decorator that defines __unicode__ and __str__ methods under Python 2. Under Python 3 it does nothing. |
Function | remove |
Remove item from six.moves. |
Function | reraise |
Undocumented |
Function | u |
Undocumented |
Function | with |
Create a base class with a metaclass. |
Function | wraps |
Undocumented |
Constant | PY2 |
Undocumented |
Constant | PY3 |
Undocumented |
Constant | PY34 |
Undocumented |
Variable | __author__ |
Undocumented |
Variable | __path__ |
Undocumented |
Variable | __version__ |
Undocumented |
Variable | byte2int |
Undocumented |
Variable | class |
Undocumented |
Variable | exec_ |
Undocumented |
Variable | get |
Undocumented |
Variable | get |
Undocumented |
Variable | get |
Undocumented |
Variable | get |
Undocumented |
Variable | get |
Undocumented |
Variable | get |
Undocumented |
Variable | int2byte |
Undocumented |
Variable | integer |
Undocumented |
Variable | moves |
Undocumented |
Variable | string |
Undocumented |
Variable | viewitems |
Undocumented |
Variable | viewkeys |
Undocumented |
Variable | viewvalues |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
Lazy loading of moved objects |
Class | _ |
A meta path importer to import six.moves and its submodules. |
Function | _add |
Add documentation to a function. |
Function | _import |
Import module, returning the module after the last dot. |
Function | _update |
Undocumented |
Variable | _assert |
Undocumented |
Variable | _assert |
Undocumented |
Variable | _assert |
Undocumented |
Variable | _assert |
Undocumented |
Variable | _func |
Undocumented |
Variable | _func |
Undocumented |
Variable | _func |
Undocumented |
Variable | _func |
Undocumented |
Variable | _importer |
Undocumented |
Variable | _meth |
Undocumented |
Variable | _meth |
Undocumented |
Variable | _moved |
Undocumented |
Variable | _urllib |
Undocumented |
Variable | _urllib |
Undocumented |
Variable | _urllib |
Undocumented |
Variable | _urllib |
Undocumented |
Variable | _urllib |
Undocumented |
Coerce **s** to six.binary_type. For Python 2: - `unicode` -> encoded to `str` - `str` -> `str` For Python 3: - `str` -> encoded to `bytes` - `bytes` -> `bytes`
Coerce *s* to `str`. For Python 2: - `unicode` -> encoded to `str` - `str` -> `str` For Python 3: - `str` -> `str` - `bytes` -> decoded to `str`
Coerce *s* to six.text_type. For Python 2: - `unicode` -> `unicode` - `str` -> `unicode` For Python 3: - `str` -> `str` - `bytes` -> decoded to `str`
A class decorator that defines __unicode__ and __str__ methods under Python 2. Under Python 3 it does nothing. To support Python 2 and 3 with a single code base, define a __str__ method returning text and apply this decorator to the class.
Undocumented