Lines Matching refs:six

4 .. module:: six
13 without modification. six consists of only one Python file, so it is painless
16 Six can be downloaded on `PyPi <http://pypi.python.org/pypi/six/>`_. Its bug
17 tracker and code hosting is on `BitBucket <http://bitbucket.org/gutworth/six>`_.
19 The name, "six", comes from the fact that 2*3 equals 6. Why not addition?
93 import six
96 if isinstance(value, six.integer_types):
98 elif isinstance(value, six.class_types):
100 elif isinstance(value, six.string_types):
118 from six import get_unbound_function
173 so using six's version is only necessary when supporting Python 3.0 or 3.1.
309 from six import with_metaclass
358 or from text data. six provides several functions to assist in classifying
456 import six
461 six.assertCountEqual(self, (1, 2), [2, 1])
486 .. module:: six.moves
491 :mod:`six.moves` module. For example, to load the module for parsing HTML on
494 from six.moves import html_parser
499 from six.moves import reload_module
501 For the most part, :mod:`six.moves` aliases are the names of the modules in
516 :mod:`six.moves.urllib` package is a version-independent location for this
524 from six.moves.cPickle import loads
526 work, six places special proxy objects in in :data:`py3:sys.modules`. These
529 interpreter. For example, ``sys.modules["six.moves.winreg"].LoadKey`` would
531 load attributes on every module in :data:`py3:sys.modules`. six mitigates
535 directly from ``six.moves`` modules, you can workaround the issue by removing
536 the six proxy modules::
538 d = [name for name in sys.modules if name.startswith("six.moves.")]
641 | ``urllib.parse`` | See :mod:`six.moves.urllib.parse` | :mod:`py3:urllib.parse` …
643 | ``urllib.error`` | See :mod:`six.moves.urllib.error` | :mod:`py3:urllib.error` …
645 | ``urllib.request`` | See :mod:`six.moves.urllib.request` | :mod:`py3:urllib.request` …
647 | ``urllib.response`` | See :mod:`six.moves.urllib.response`| :mod:`py3:urllib.response` …
675 .. module:: six.moves.urllib.parse
713 .. module:: six.moves.urllib.error
731 .. module:: six.moves.urllib.request
779 .. module:: six.moves.urllib.response
795 .. currentmodule:: six
797 It is possible to add additional names to the :mod:`six.moves` namespace.
802 Add *item* to the :mod:`six.moves` mapping. *item* should be a
808 Remove the :mod:`six.moves` mapping called *name*. *name* should be a
818 Create a mapping for :mod:`six.moves` called *name* that references different
825 Create a mapping for :mod:`six.moves` called *name* that references different