Skip to content

Conversation

@jashapiro
Copy link

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.

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
@jashapiro jashapiro mentioned this pull request Oct 15, 2015
@rajanil
Copy link
Owner

rajanil commented Oct 26, 2015

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.

@EngineerCoding
Copy link

I know I can simply use the fork, but in this day and age it would be nice to have official python 3 support.

@sdhutchins
Copy link

@rajanil Any movement on this?

@amizeranschi
Copy link

@rajanil

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants