The six Module

Utilities for writing code that runs on Python 2 and 3

class cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.Iterator

Bases: object

next()
class cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.MovedAttribute(name, old_mod, new_mod, old_attr=None, new_attr=None)

Bases: cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six._LazyDescr

_resolve()
class cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.MovedModule(name, old, new=None)

Bases: cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six._LazyDescr

_resolve()
class cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six._LazyDescr(name)

Bases: object

class cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six._MovedItems

Bases: module

Lazy loading of moved objects

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six._add_doc(func, doc)

Add documentation to a function.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six._import_module(name)

Import module, returning the module after the last dot.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.add_move(move)

Add an item to six.moves.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.b(s)

Byte literal

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.exec_(code, globs=None, locs=None)

Execute code in a namespace.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.get_unbound_function(unbound)

Get the function out of a possibly unbound function

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.iteritems(d)

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

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.iterkeys(d)

Return an iterator over the keys of a dictionary.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.itervalues(d)

Return an iterator over the values of a dictionary.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.print_(*args, **kwargs)

The new-style print function.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.remove_move(name)

Remove item from six.moves.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.reraise(tp, value, tb=None)

Reraise an exception.

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.u(s)

Text literal

cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.six.with_metaclass(meta, base=<type 'object'>)

Create a base class with a metaclass.

The ordered_dict Module

class cloudfusion.third_party.requests_1_2_3.requests.packages.urllib3.packages.ordered_dict.OrderedDict(*args, **kwds)

Bases: dict

Dictionary that remembers insertion order

Initialize an ordered dictionary. Signature is the same as for regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.

_OrderedDict__marker = <object object at 0x4e04a80>
_OrderedDict__update(*args, **kwds)

od.update(E, **F) -> None. Update od from dict/iterable E and F.

If E is a dict instance, does: for k in E: od[k] = E[k] If E has a .keys() method, does: for k in E.keys(): od[k] = E[k] Or if E is an iterable of items, does: for k, v in E: od[k] = v In either case, this is followed by: for k, v in F.items(): od[k] = v

clear() → None. Remove all items from od.
copy() → a shallow copy of od
classmethod fromkeys(S[, v]) → New ordered dictionary with keys from S

and values equal to v (which defaults to None).

items() → list of (key, value) pairs in od
iteritems()

od.iteritems -> an iterator over the (key, value) items in od

iterkeys() → an iterator over the keys in od
itervalues()

od.itervalues -> an iterator over the values in od

keys() → list of keys in od
pop(k[, d]) → v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem() → (k, v), return and remove a (key, value) pair.

Pairs are returned in LIFO order if last is true or FIFO order if false.

setdefault(k[, d]) → od.get(k,d), also set od[k]=d if k not in od
update(E, **F) → None. Update od from dict/iterable E and F.

If E is a dict instance, does: for k in E: od[k] = E[k] If E has a .keys() method, does: for k in E.keys(): od[k] = E[k] Or if E is an iterable of items, does: for k, v in E: od[k] = v In either case, this is followed by: for k, v in F.items(): od[k] = v

values() → list of values in od
viewitems() → a set-like object providing a view on od's items
viewkeys() → a set-like object providing a view on od's keys
viewvalues() → an object providing a view on od's values

Table Of Contents

Previous topic

The pyopenssl Module

Next topic

The ssl_match_hostname Package

This Page