Lines Matching refs:Py2
13 either Py2 or Py3 code easily to support both Python 2 and 3 in a single
28 - ``future.builtins`` package (also available as ``builtins`` on Py2) provides
30 versus Py2
33 their Python 3 names on Py2
48 ``3to2`` and ``python-modernize``, for automatic conversion from either Py2
53 ``past.utils`` selected from Py2/3 compatibility interfaces from projects
65 Replacements for Py2's built-in functions and types are designed to be imported
115 # input() replaces Py2's raw_input() (with no eval()):
122 # Compatible output from isinstance() across Py2/3:
128 # future.types.newobject) are automatically backward compatible with Py2:
144 # Many Py3 module names are supported directly on both Py2.x and 3.x:
150 # Refactored modules with clashing names on Py2 and Py3 are supported
161 from collections import Counter, OrderedDict # backported to Py2.6
164 Automatic conversion to Py2/3-compatible code
169 both platforms (Py2/3). It is based on 2to3 and uses fixers from ``lib2to3``,
176 For conversions from Python 3 code to Py2/3, use the ``pasteurize`` script
178 Py2/3 compatible constructs and adds ``__future__`` and ``future`` imports to
202 into this code which runs on both Py2 and Py3: