What does this bogus code in urlparse do?

John Nagle nagle at animats.com
Tue Feb 26 00:04:01 EST 2008


See "http://svn.python.org/view/python/trunk/Lib/urlparse.py?rev=60163&view=markup"

Look at "urljoin".

What does the code marked "# XXX The stuff below is bogus in various
ways..." do?

I think it's an attempt to remove leading "../" components in URLs, which are
generally ignored.  But it also does something with commas, and it's not
clear why.

				John Nagle



More information about the Python-list mailing list