⬅︎ Back to parametrize_url() adding parameters to URLs
I guess the hack was necessary exactly becuse the non-standard 'http://foo.com?bar=xx' form. As of Python 2.5 this is parsed correctly: >>> u = urlparse('http://myfoo.com?a') >>> u.netloc 'myfoo.com' >>> u.query 'a'
Comment
I guess the hack was necessary exactly becuse the non-standard 'http://foo.com?bar=xx' form. As of Python 2.5 this is parsed correctly:
>>> u = urlparse('http://myfoo.com?a')
>>> u.netloc
'myfoo.com'
>>> u.query
'a'