python2x3 module

Provides code and data to facilitate writing python code that runs on 2.x and 3.x, including pypy.

python2x3.binary_to_intlist(binary)[source]

Convert a binary string to a list of integers.

python2x3.binary_to_string(binary)[source]

Convert a binary string to a text string.

python2x3.intlist_to_binary(intlist)[source]

Convert a list of integers to a binary string type.

python2x3.python_major()[source]

Return an integer corresponding to the major version # of the python interpreter we’re running on.

python2x3.string_to_binary(string)[source]

Convert a text string (or binary string type) to a binary string type.