<?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>Ventolin Mexico - FDA Approved Pharmacy</title>
	<atom:link href="http://noehr.org/2009/03/08/lrstrip-considered-harmful/feed/" rel="self" type="application/rss+xml" />
	<link>http://noehr.org/2009/03/08/lrstrip-considered-harmful/</link>
	<description>Pythonista, RESTafarian, Binary Poet &#38; Proud Bucketeer</description>
	<lastBuildDate>Thu, 03 Dec 2009 23:13:18 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Ventolin Mexico - FDA Approved Pharmacy</title>
		<link>http://noehr.org/2009/03/08/lrstrip-considered-harmful/comment-page-1/#comment-460</link>
		<dc:creator>Zak</dc:creator>
		<pubDate>Tue, 31 Mar 2009 02:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://noehr.org/?p=28#comment-460</guid>
		<description>While I agree that str.replace is amazingly useful, the best way to strip a file&#039;s extension is os.path.splitext:

    &gt;&gt;&gt; os.path.splitext(&#039;fumble.exe&#039;)
    (&#039;fumble&#039;, &#039;.exe&#039;)</description>
		<content:encoded><![CDATA[<p>While I agree that str.replace is amazingly useful, the best way to strip a file&#8217;s extension is os.path.splitext:</p>
<p>    &gt;&gt;&gt; os.path.splitext(&#8216;fumble.exe&#8217;)<br />
    (&#8216;fumble&#8217;, &#8216;.exe&#8217;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
