Python 2/3 compatible functions
$ pip install py23
import os
from py23 import load_module_by_path
py_module = load_module_by_path(os.path.join('py23', '__init__.py')
assert callable(py_module.remove_symbols)
$ git clone [email protected]:vb64/py23.git
$ cd py23
With Python 3:
$ make setup PYTHON_BIN=/path/to/python3
$ make tests
With Python 2:
$ make setup2 PYTHON_BIN=/path/to/python2
$ make tests2