<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The best python url_join routine ever</title>
	<atom:link href="http://coderseye.com/2006/the-best-python-url_join-routine-ever.html/feed" rel="self" type="application/rss+xml" />
	<link>http://coderseye.com/2006/the-best-python-url_join-routine-ever.html</link>
	<description>Programming is passion made real</description>
	<lastBuildDate>Fri, 09 Dec 2011 00:27:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Ruud</title>
		<link>http://coderseye.com/2006/the-best-python-url_join-routine-ever.html#comment-203</link>
		<dc:creator>Ruud</dc:creator>
		<pubDate>Sat, 14 Nov 2009 08:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/the-best-python-url_join-routine-ever.html#comment-203</guid>
		<description>Or just use urlparse: http://docs.python.org/library/urlparse.html</description>
		<content:encoded><![CDATA[<p>Or just use urlparse: <a href="http://docs.python.org/library/urlparse.html" rel="nofollow">http://docs.python.org/library/urlparse.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gresh</title>
		<link>http://coderseye.com/2006/the-best-python-url_join-routine-ever.html#comment-202</link>
		<dc:creator>Gresh</dc:creator>
		<pubDate>Tue, 22 Sep 2009 09:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/the-best-python-url_join-routine-ever.html#comment-202</guid>
		<description>def url_join(self, path, *args):
    return &#039;/&#039;.join([path.rstrip(&#039;/&#039;)] + list(args))


works well for me.</description>
		<content:encoded><![CDATA[<p>def url_join(self, path, *args):<br />
    return &#8216;/&#8217;.join([path.rstrip('/')] + list(args))</p>
<p>works well for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://coderseye.com/2006/the-best-python-url_join-routine-ever.html#comment-201</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Mon, 10 Jul 2006 00:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/the-best-python-url_join-routine-ever.html#comment-201</guid>
		<description>I actually don&#039;t mind the forward vs. backslash windows/linux os.path.join issue.  Os.path.join also avoids doubling up the slashes.  I wanted that function, and can simply correct for the backslashes.

It looks like I could simply join with &quot;/&quot; and then run normpath, but note that I&#039;ll still need to correct for Windows brain-damaged backslashes.</description>
		<content:encoded><![CDATA[<p>I actually don&#8217;t mind the forward vs. backslash windows/linux os.path.join issue.  Os.path.join also avoids doubling up the slashes.  I wanted that function, and can simply correct for the backslashes.</p>
<p>It looks like I could simply join with &#8220;/&#8221; and then run normpath, but note that I&#8217;ll still need to correct for Windows brain-damaged backslashes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal Kwiatkowski</title>
		<link>http://coderseye.com/2006/the-best-python-url_join-routine-ever.html#comment-200</link>
		<dc:creator>Michal Kwiatkowski</dc:creator>
		<pubDate>Fri, 07 Jul 2006 17:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2006/the-best-python-url_join-routine-ever.html#comment-200</guid>
		<description>Don&#039;t use os.path.join for URLs because it will break on Windows and Mac. Simple &#039;/&#039;.join(work) will do the job. And there is a function in stdlib for path normalization: os.path.normpath, which will be more elegant solution that if/else.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use os.path.join for URLs because it will break on Windows and Mac. Simple &#8216;/&#8217;.join(work) will do the job. And there is a function in stdlib for path normalization: os.path.normpath, which will be more elegant solution that if/else.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

