[New-bugs-announce] [issue2569] default_scheme in urlparse.urlparse() useless

pk report at bugs.python.org
Mon Apr 7 10:37:56 CEST 2008


New submission from pk <pk at q-leap.com>:

Hello,

the urlparse() function accepts a parameter default_scheme, to be used
if the address given does not contain one, but I cannot make
use of it, because I would expect these two returning
identical values:

>>> from urlparse import urlparse
>>> urlparse("www","http")
('http', '', 'www', '', '', '')
>>> urlparse("http://www","http")
('http', 'www', '', '', '', '')

This has been reported about six years ago but apparently
the behaviour hasn't changed.  I cannot imagine that this
really is the intended behaviour.

Regards,

    pk

----------
components: Library (Lib)
messages: 65071
nosy: pk
severity: normal
status: open
title: default_scheme in urlparse.urlparse() useless
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2569>
__________________________________


More information about the New-bugs-announce mailing list