[Python-il] urlparse bug?

cool-RR cool-rr at cool-rr.com
Thu May 5 13:58:26 IDT 2011

On Thu, May 5, 2011 at 12:54 PM, Ahik Man <ahik.man at gmail.com> wrote:

> Hi,
> While trying to use urlparse lib, I encounter unexpeted behavior. It's
> happened when parsing non trivial url scheme.
> For example:
> from urlparse import urlparse
> p_url = urlparse('abc://server/download/0000?b=a')
> In the above code, 'p_url' suppose to have 'b=a' in the p_url.query, but it
> put it in the path.
> The same happened to urlsplit.
> Am I doing something wrong or it's a bug?
> Ahik

FWIW,  I tried it in Python 3.2 to see if it's changed, and it didn't, it
puts the `a=b` in the path as well.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://hamakor.org.il/pipermail/python-il/attachments/20110505/edcea4b4/attachment.htm>

More information about the Python-il mailing list