six

Module: six

Inheritance diagram for nitime.six:

Inheritance diagram of nitime.six

Utilities for writing code that runs on Python 2 and 3

Classes

Module_six_moves_urllib

class nitime.six.Module_six_moves_urllib

Bases: module

Create a six.moves.urllib namespace that resembles the Python 3 namespace

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

error = <module 'nitime.six.moves.urllib_error' (built-in)>
parse = <module 'nitime.six.moves.urllib_parse' (built-in)>
request = <module 'nitime.six.moves.urllib_request' (built-in)>
response = <module 'nitime.six.moves.urllib_response' (built-in)>
robotparser = <module 'nitime.six.moves.urllib_robotparser' (built-in)>

Module_six_moves_urllib_error

class nitime.six.Module_six_moves_urllib_error

Bases: module

Lazy loading of moved objects in six.moves.urllib_error

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Module_six_moves_urllib_parse

class nitime.six.Module_six_moves_urllib_parse

Bases: module

Lazy loading of moved objects in six.moves.urllib_parse

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Module_six_moves_urllib_request

class nitime.six.Module_six_moves_urllib_request

Bases: module

Lazy loading of moved objects in six.moves.urllib_request

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Module_six_moves_urllib_response

class nitime.six.Module_six_moves_urllib_response

Bases: module

Lazy loading of moved objects in six.moves.urllib_response

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Module_six_moves_urllib_robotparser

class nitime.six.Module_six_moves_urllib_robotparser

Bases: module

Lazy loading of moved objects in six.moves.urllib_robotparser

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

MovedAttribute

class nitime.six.MovedAttribute(name, old_mod, new_mod, old_attr=None, new_attr=None)

Bases: nitime.six._LazyDescr

__init__(name, old_mod, new_mod, old_attr=None, new_attr=None)

MovedModule

class nitime.six.MovedModule(name, old, new=None)

Bases: nitime.six._LazyDescr

__init__(name, old, new=None)

Functions

nitime.six.add_metaclass(metaclass)

Class decorator for creating a class with a metaclass.

nitime.six.add_move(move)

Add an item to six.moves.

nitime.six.iteritems(d, **kw)

Return an iterator over the (key, value) pairs of a dictionary.

nitime.six.iterkeys(d, **kw)

Return an iterator over the keys of a dictionary.

nitime.six.iterlists(d, **kw)

Return an iterator over the (key, [values]) pairs of a dictionary.

nitime.six.itervalues(d, **kw)

Return an iterator over the values of a dictionary.

nitime.six.remove_move(name)

Remove item from six.moves.

nitime.six.with_metaclass(meta, *bases)

Create a base class with a metaclass.