[Python-Dev] urlparse.urlunsplit should be smarter about +

Senthil Kumaran orsenthil at gmail.com
Mon May 10 10:27:33 CEST 2010


On Mon, May 10, 2010 at 05:11:12PM +0900, Stephen J. Turnbull wrote:
>  > Not all urls have the 'authority' component after the scheme. (sip
>  > based urls for e.g) urlparse differentiates those by maintaining a
>  > list of scheme names which will follow the pattern of parsing, and
>  > joining for the urls which  have a netloc (or authority component).
>  > This is in general according to RFC 3986 itself.
> 
> This actually quite at variance with the RFC.  The grammar in section

I should have said, 'treatment of urls with authority' and 'treatment
of urls without authority' in terms of parsing and joining is as per
RFC.  How it is doing practically is by maintaining a list of urls
with known scheme names which use_netloc.

-- 
Senthil

Many Myths are based on truth
		-- Spock, "The Way to Eden",  stardate 5832.3


More information about the Python-Dev mailing list