[issue8818] urlsplit and urlparse add extra slash when using scheme

AdamN report at bugs.python.org
Tue May 25 20:04:40 CEST 2010


AdamN <adam at varud.com> added the comment:

I appreciate what you're saying but nobody, I guarantee nobody, is using the '//cnn.com' semantics.

Anyway, in RFC 3986 in the Syntax Components section, you'll see that the '://' is not part of scheme or netloc.  I could imagine urlsplit() failing if the url was not prepended by '//' or 'scheme://', but why would being prepended with nothing cause urlsplit() to presume it's a path?

Can we at least document this?

----------

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


More information about the Python-bugs-list mailing list