This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pk
Recipients pk
Date 2008-04-07.08:37:54
SpamBayes Score 0.034112412
Marked as misclassified No
Message-id <1207557475.98.0.0117394691364.issue2569@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-04-07 08:37:56pksetspambayes_score: 0.0341124 -> 0.034112412
recipients: + pk
2008-04-07 08:37:56pksetspambayes_score: 0.0341124 -> 0.0341124
messageid: <1207557475.98.0.0117394691364.issue2569@psf.upfronthosting.co.za>
2008-04-07 08:37:55pklinkissue2569 messages
2008-04-07 08:37:54pkcreate