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 eric.araujo
Recipients OMFGROFLMAO, eric.araujo
Date 2010-04-01.20:25:12
SpamBayes Score 2.330703e-06
Marked as misclassified No
Message-id <1270153514.05.0.972706034127.issue8284@psf.upfronthosting.co.za>
In-reply-to
Content
Yes and no.

To you, in some contexts, the characters “example.org” identify a domain from the domain name system. However, from the URI spec viewpoint, netloc has the precise meaning of “machine to connect to to accomplish the rest of the URI role”. In other words, the URI spec does not call any sequence of characters that is a valid domain name a netloc. In schemes without a netloc part, the part after the colon is called a path, event if it contains a domain name (e.g. mailto:wok@example.org).

In your scheme-less example, the absence of “://” means that urlparse must assume there is no netloc part. Have you checked that the spec says we should assume an empty scheme (making urlparse right) or refuse to parse and bail?

Regards
History
Date User Action Args
2010-04-01 20:25:14eric.araujosetrecipients: + eric.araujo, OMFGROFLMAO
2010-04-01 20:25:14eric.araujosetmessageid: <1270153514.05.0.972706034127.issue8284@psf.upfronthosting.co.za>
2010-04-01 20:25:12eric.araujolinkissue8284 messages
2010-04-01 20:25:12eric.araujocreate