|
From: Matthew P. <ge...@mp...> - 2016-04-04 14:36:08
|
Attached is a patch to add Python 3 support to the Python bindings. Most of the changes are wrapped in preprocessor conditionals and are related to the int/long and str/unicode changes in Python 3 [1]. The only visible change for Python 2 is allowing Unicode strings to be accepted; this breaks support for versions <2.6. If desired, I could add additional preprocessor conditionals to avoid breaking support. Currently, bindings are only built for one Python version; it would be nice to automatically build bindings for both Python 2 and 3, but I'm not particularly familiar with Autotools. The patch has been tested with Python 2.7 and 3.4 on Linux Mint 17.3 (Ubuntu 14.04 base). -Matthew Petroff [1] https://docs.python.org/3/howto/cporting.html |