-
Notifications
You must be signed in to change notification settings - Fork 49
Update to support Python3 #26
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
base: master
Are you sure you want to change the base?
Conversation
Replace with py3-compatible `in` statements
This version of range is an iterator, eliminating the need for xrange, which is not present in py3
py3 map() returns an iterator, so an explicit call to list() is added here.
Explicit call to list() to convert values() call from iterator
|
Thanks for taking the time to make these updates for Python 3! (Sorry for the late response.) I'm a bit swamped now with other projects, but I'll make sure to do some efficiency tests and merge, as soon as possible. |
|
I know I can simply use the fork, but in this day and age it would be nice to have official python 3 support. |
|
@rajanil Any movement on this? |
|
It's been a while since this was first posted. It would be great to have Python3 support, as Python2 has been deprecated for some time. |
Multiple minor updates to support Python3. (Fix Issue #23)
Most changes are to the handling of print statements, but there are also some changes to support changes in string processing (namely the separation of strings and bytes) in python 3.
Tested under both Python3 and Python2, so all changes should be backward compatible. There should not be any major changes to efficiency, but I have not benchmarked.