Python 3 support

2018-03-16 Thread Julian Wollrath
Hi, gnucash currently does not work with python 3. The attached patch changes this and switches the python bindings over to python 3. In principle, they should also work with python 2 (the only change that could be problematic is the deletion of the unicode part in gnucash_core.py, to make it work

[PATCH] Switch to python 3

2018-03-16 Thread Julian Wollrath
This switches swig to use python 3 specific features, switches the build over to python 3 and adapts the tests accordingly. --- CMakeLists.txt | 6 +-- bindings/python/__init__.py | 2 +- bindings/python/function_class.py| 34 ++

Re: [PATCH] Switch to python 3

2018-03-16 Thread John Ralls
Sorry, we don’t accept patches on the mailing lists. Please either create a pull request on Github or attach it to https://bugzilla.gnome.org/show_bug.cgi?id=791831 . In the latter case patches should be made with git format-patch. In either ca

Re: [PATCH] Switch to python 3

2018-03-16 Thread Alen Siljak
Thanks for the consideration, John. I'm happy to push for adoption of Python 3 and use that exclusively (as I'm fresh in the Python world). Sebastien might still be supporting v2 in some projects so let's see what he has to add. > Sent: Friday, March 16, 2018 at 3:26 PM > From: "John Ralls" >

Re: [PATCH] Switch to python 3

2018-03-16 Thread Sébastien de Menten
Definitely, I would go for supporting python 3 only. People wanting to use python 2.7 may stay as well with the current 2.6 version or gnucash. On Mar 16, 2018 15:35, "Alen Siljak" wrote: > Thanks for the consideration, John. I'm happy to push for adoption of > Python 3 and use that exclusively