gevent.six – Utilities for writing code that runs on Python 2 and 3

gevent.six.MovedAttribute
gevent.six.MovedModule
gevent.six.add_move(move)

Add an item to six.moves.

gevent.six.advance_iterator(it)
gevent.six.b(s)

Byte literal

gevent.six.exec_(code, globs=None, locs=None)

Execute code in a namespace.

gevent.six.get_unbound_function(unbound)

Get the function out of a possibly unbound function

gevent.six.iteritems(d)

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

gevent.six.iterkeys(d)

Return an iterator over the keys of a dictionary.

gevent.six.itervalues(d)

Return an iterator over the values of a dictionary.

gevent.six.print_(*args, **kwargs)

The new-style print function.

gevent.six.remove_move(name)

Remove item from six.moves.

gevent.six.reraise(tp, value, tb=None)

Reraise an exception.

gevent.six.u(s)

Text literal

gevent.six.with_metaclass(meta, base=<type 'object'>)

Create a base class with a metaclass.