Python urlparse, correct or incorrect?
Posted
by omfgroflmao
on Stack Overflow
See other posts from Stack Overflow
or by omfgroflmao
Published on 2010-04-01T21:58:57Z
Indexed on
2010/04/01
22:03 UTC
Read the original article
Hit count: 184
Python's urlparse function parses an url into six components (scheme, netloc, path and others stuff)
Now I've found that parsing "example.com/path/file.ext" return no netloc but a path "example.com/path/file.ext".
Should't it be netloc = "example.com" and path = "/path/file.ext"?
Do we really need a "://" to determine wether or not a netloc exists?
Python's ticket: http://bugs.python.org/issue8284
© Stack Overflow or respective owner