[issue2569] default_scheme in urlparse.urlparse() useless

Anthony Lenton report at bugs.python.org
Sat Jun 21 19:31:17 CEST 2008


Anthony Lenton <antoniolenton at gmail.com> added the comment:

In http://bugs.python.org/issue754016 there's already a discussion about
this.
The RFC that urlparse is following (rfc 1808) requires the net_loc
component to start with // even if the scheme component is missing,
which is why urlparse("www","http") puts the 'www' in to the path
component instead of net_loc.

It seems that this is indeed the intended behavior, and the patch for
issue 754016 adds a docfix clarifying this.

----------
nosy: +elachuni

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


More information about the Python-bugs-list mailing list