Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Python3 no six#14

Merged
jaybaird merged 2 commits intojaybaird:masterfrom
Bachmann1234:python3-no-six
Jun 23, 2014
Merged

Python3 no six#14
jaybaird merged 2 commits intojaybaird:masterfrom
Bachmann1234:python3-no-six

Conversation

@Bachmann1234
Copy link
Copy Markdown
Contributor

Here I attempt to port to python3 without using the six library. I also add a tox.ini so the tests will run for python 6, python7, and python3.4

Python 3 is nice, cleaner, faster, and does unicode better than python2.

The problem is that it is not backwards compatible with python2, so you have to smooth out rough edges when supporting both.

In this project the biggies were
xrange no longer exists. range does what xrange did
imports are absolute, I backported this with future so we could support both/
StringIO is different, for what we do here you want bytesIO as StringIO demands a unicode string (in python3 str is unicode and unicode does not exists. There is a separate string type bytes)
Setup.py needed an update as the ez_setup had some unsupported syntax\

The tests all pass for all environments. Though I will keep an eye on the project to see if any issues come up due to python3 stuff.

@Bachmann1234
Copy link
Copy Markdown
Contributor Author

@jaybaird any thoughts on this PR?

jaybaird added a commit that referenced this pull request Jun 23, 2014
@jaybaird jaybaird merged commit 30cf351 into jaybaird:master Jun 23, 2014
@Bachmann1234 Bachmann1234 deleted the python3-no-six branch June 23, 2014 17:32
groovecoder pushed a commit to groovecoder/python-bloomfilter that referenced this pull request Apr 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants