[issue2569] default_scheme in urlparse.urlparse() useless
Anthony Lenton [EMAIL PROTECTED] 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 [EMAIL PROTECTED] http://bugs.python.org/issue2569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2569] default_scheme in urlparse.urlparse() useless
Changes by Anthony Lenton [EMAIL PROTECTED]: -- nosy: +facundobatista ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2569] default_scheme in urlparse.urlparse() useless
Facundo Batista [EMAIL PROTECTED] added the comment: Thanks (pk) and Anthony! -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2569] default_scheme in urlparse.urlparse() useless
New submission from pk [EMAIL PROTECTED]: 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 [EMAIL PROTECTED] http://bugs.python.org/issue2569 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2569] default_scheme in urlparse.urlparse() useless
pk [EMAIL PROTECTED] added the comment: and this is the url to the old report: http://mail.python.org/pipermail/python-list/2002-August/157171.html __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2569 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com