-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 #35
Comments
Can't speak for @vishnubob but I suspect no one has plans.The built-in |
Unfortunately, using 2to3 doesn't exactly make everything work. The program has a problem in the events.py file: ValueError: 'pitch' in slots conflicts with class variable (line 112ish). A quick google turns up another github page with a guy saying, "The problem is happening because in Python 2.x if you defined slots and after that defined a property with the same name the slots descriptor was replaced silently. In Python 3.x this isn't allowed anymore." Unfortunately, this is beyond my understanding of the language and so I can't fix it. There may be more 2.x / 3.x issues too. |
Hi jsphweid, thanks for your message. I guess this might require a metaclass to solve, or getting rid of slots. I use slots because I wanted each individual MIDI event object to have as minimal of a memory footprint as possible, but maybe this unnecessary? If I get sometime next week, I will try to implement a new branch with 3.0 compatibility. |
My brother and I started removing them and it would run parts with no errors but it seems there were other issues. Can't remember. But it might not be that far off at all. |
Ok I'm reading up on this too and I'm not 100% sure slots work with |
There are also quite a few issues with string/byte file IO :/. Not to mention some old conventions; use of |
👍 to this bug :( |
Thanks to a contributor, there is now a python3 test branch. |
What is the current status ? |
Downloading from feature/python3 and installing manually with setup.py still throws error, guess the compatibility was implemented only for linux ? what about other platforms ? |
Status? |
Right now it's in a holding pattern until I can find some time from work to focus on my open source projects. I'm also interested in working with volunteers. |
I looked into Python 3 compatibility without realizing the Python3 branch at first. If there is any interest I can create a set of patches that ports most of those changes into the master branch. It should be possible to make the master branch compatible with both Python2 and Python3 if some hacks (and usage of the "future" module) are acceptable. Otherwise it should be possible to come up with a new Python3 branch with very few, very small patches that address specific Python2 vs Python3 incompatibilities only. |
by all means. |
One thing that would probably help would be to use the |
Having a @vishnubob please close the cruft PR's and defunct branch. |
Any plans on Python 3 compatibility?
The text was updated successfully, but these errors were encountered: