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 facundobatista
Recipients elachuni, facundobatista, georg.brandl, georg.brandl, kruegi, orsenthil, sjones
Date 2008-06-21.19:10:06
SpamBayes Score 0.051748905
Marked as misclassified No
Message-id <1214075408.89.0.541716569918.issue754016@psf.upfronthosting.co.za>
In-reply-to
Content
I agree with Anthony here, because if you let people write without the
"//" at the beginning, you'll never know if they're entering a net
location or a relative path.

So, the better behaviour to be as explicit as possible should be:

>>> urlparse.urlparse('1.2.3.4:80','http')
Traceback!!! ValueError(<nice message here>)

>>> urlparse.urlparse('//1.2.3.4:80','http')
('http', '1.2.3.4:80', '', '', '', '')


So, to close this issue, we should fix the code to behave like indicated
in the first case.

What do you think?
History
Date User Action Args
2008-06-21 19:10:09facundobatistasetspambayes_score: 0.0517489 -> 0.051748905
recipients: + facundobatista, georg.brandl, birkenfeld, sjones, kruegi, orsenthil, elachuni
2008-06-21 19:10:08facundobatistasetspambayes_score: 0.0517489 -> 0.0517489
messageid: <1214075408.89.0.541716569918.issue754016@psf.upfronthosting.co.za>
2008-06-21 19:10:08facundobatistalinkissue754016 messages
2008-06-21 19:10:06facundobatistacreate