Skip to content
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

Support Python 3.x #1

Open
njwilson opened this issue Sep 21, 2011 · 0 comments
Open

Support Python 3.x #1

njwilson opened this issue Sep 21, 2011 · 0 comments

Comments

@njwilson
Copy link
Owner

I’d like to support Python 3.x sooner rather than later, but I’m not planning to invest much time in it until I have something working well enough on Python 2 for people to use. I’d be perfectly happy if someone else put some time into it though.

I don’t have much (any) experience with Python 3, but I think the best approach will be to maintain only one version of the code for Python 2 and run 2to3 on installation. See the 2to3 section of the Python 3 porting book for details. I'm happy to make the code look more like Python 3 (e.g., add parenthesis to the print statement), but prefer to avoid weird hacks like compatibility libraries. But as I said, I'm no expert on this.

Since I don't plan to support Python 2.5 (which is missing significant features that later versions have), supporting Python 3 really shouldn't be a big deal for this library. That is, assuming we don't have dependencies on packages that don't support Python 3 yet (I'd like to avoid depending on those packages). Having good test coverage will help make the whole thing easier as well.

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

No branches or pull requests

1 participant