[issue1698] urlparse and usernames containing @

Senthil report at bugs.python.org
Wed Dec 26 18:29:46 CET 2007


Senthil added the comment:

> 
> Olivier Croquette added the comment:
> 
> And about the decoding, sorry, it's clear from your snippets that
> urlparse doesn't do it:
> >>> print q.username
> user%40xyz
> 
> Maybe it should do it, I am not sure. What do you think? It would save
> work for the module user.

No, urlparse does not have any method for encoding/decoding.
It has been left to urllib2 in urlencode, urldecode, quote, unquote etc.
Strangely though, user should use urllib2 for that purpose.

And yeah, there is been an effort to merge the urlparse and urllib2
functionality and I am slowly upto it. :)
Before more requests come this way, I guess I have to show some progress.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1698>
__________________________________


More information about the Python-bugs-list mailing list