On Mon, Feb 25, 2008 at 11:04 PM, John Nagle <[EMAIL PROTECTED]> wrote: > 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 > --
You should probably invest in syntax highlighting ;), it doesn't do anything with commas (just '.', '..' , and ''). It appears to be trying to normalize relative URLs into a single absolute one, as the docstring implies. -- http://mail.python.org/mailman/listinfo/python-list