[issue3300] urllib.quote and unquote - Unicode issues

Antoine Pitrou report at bugs.python.org
Thu Aug 7 16:20:05 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Le jeudi 07 août 2008 à 13:42 +0000, Matt Giuca a écrit :
> The reasoning is this: if we allow non-ASCII characters to be escaped,
> then we allow quote to generate invalid URIs (URIs are only allowed to
> have ASCII characters). It's one thing for unquote to accept such URIs,
> but I think we shouldn't be producing them. Albeit, it only produces an
> invalid URI if you explicitly request it. So I'm happy to make the
> change to allow any character to be safe, but I'll let it go to
> discussion first.

The important is that the defaults are safe. If users want to override
the defaults and produce potentially invalid URIs, there is no reason to
discourage them.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3300>
_______________________________________


More information about the Python-bugs-list mailing list