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

Python 3 API Changes Discussion #113

Closed
mitsuhiko opened this issue Sep 26, 2011 · 1 comment
Closed

Python 3 API Changes Discussion #113

mitsuhiko opened this issue Sep 26, 2011 · 1 comment

Comments

@mitsuhiko
Copy link
Contributor

There are two major stepping stones that cause troubles for us on Python 3 and we will have to decide how to deal with that. As it stands currently, URLs on Python 3 are a major pain since you can no longer have them encoded and pass them around user code without the user becoming incredibly frustrated.

Werkzeug currently sees bytestrings as representing URIs and unicode strings representing IRIs. This will no longer work on Python 3. Now the question is how we deal with that. We could change URIs to be unicode as well and forcing users to use IRIs everywhere internal. We once did this per accident for a single header and double encoding was the result. :-/

The other one is that we have some streams that accept both unicode and bytes currently, something that is impossible to do on Python 3. What do we do there?

@DasIch
Copy link
Contributor

DasIch commented Jun 16, 2013

We have Python 3 support now and these issues have been solved.

@DasIch DasIch closed this as completed Jun 16, 2013
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants