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 #493

Closed
pjz opened this issue Aug 13, 2015 · 12 comments
Closed

Support Python 3.x #493

pjz opened this issue Aug 13, 2015 · 12 comments

Comments

@pjz
Copy link
Contributor

pjz commented Aug 13, 2015

The world is changing. We should change with it.

@chadwhitacre chadwhitacre mentioned this issue Aug 13, 2015
36 tasks
@chadwhitacre
Copy link
Contributor

Need new mimeparse: https://pypi.python.org/pypi/mimeparse.

@pjz
Copy link
Contributor Author

pjz commented Sep 1, 2015

Did some work on this and ran into

...
  File "/home/pj/src/aspen-meta/aspen/aspen/http/request.py", line 144, in <module>
    class IntWithRaw(int):
TypeError: nonempty __slots__ not supported for subtype of 'int'

... which seems to me to be more impetus to, as #357 says, ' #222 or drop back to werkzeug?'

@pjz
Copy link
Contributor Author

pjz commented Sep 3, 2015

@chadwhitacre
Copy link
Contributor

@pjz
Copy link
Contributor Author

pjz commented Sep 3, 2015

Known, wontfix bug: http://bugs.python.org/issue1173475

@chadwhitacre
Copy link
Contributor

(In a sense the way to deal with this issue when porting to Python 3 is simple; you just stop using slots on your subclass of int. Everything works the same and your instances just take up a bit more memory.)

@chadwhitacre
Copy link
Contributor

Refer to http://pythonhosted.org/six/. Either bring it in as a dependency, or copy/paste code from it into our own backcompat submodule.

@chadwhitacre
Copy link
Contributor

Consider https://pypi.python.org/pypi/tox for testing multiple Python versions locally.

@chadwhitacre
Copy link
Contributor

@Changaco Any interest in landing this before 1.0 in September?

@Changaco
Copy link
Member

Yes, python3 is the next item in my TODO. Don't know when I'll get around to it, but it should be doable before 1.0.

@Changaco
Copy link
Member

I have Pando's tests passing on python3. :-)

@chadwhitacre
Copy link
Contributor

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

3 participants