<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sean Cook &#187; Python</title>
	<atom:link href="http://www.seancook.com/category/programming/python-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seancook.com</link>
	<description>ramblings on mobile software, devices, and life</description>
	<lastBuildDate>Mon, 17 Aug 2009 15:40:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>String concatenations in Python</title>
		<link>http://www.seancook.com/2009/08/17/string-concatenations-in-python/</link>
		<comments>http://www.seancook.com/2009/08/17/string-concatenations-in-python/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 15:18:15 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.seancook.com/?p=76</guid>
		<description><![CDATA[Here is an excellent page that compares the efficiencies of various methods for String concatenation in Python.  The author uses long lists of integers as the strings to combine, which provides an interesting test case.
The fastest method (according to the article) is:

def method6():
     return ''.join([`num` for num in xrange(loop_count)])

The article also [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an excellent page that<a href="http://skymind.com/~ocrow/python_string/"> compares the efficiencies of various methods for String concatenation in Python</a>.  The author uses long lists of integers as the strings to combine, which provides an interesting test case.</p>
<p>The fastest method (according to the article) is:</p>
<pre class="brush: python;">
def method6():
     return ''.join([`num` for num in xrange(loop_count)])
</pre>
<p>The article also lists the following, more common approach:</p>
<pre class="brush: python;">
def method4():
    str_list = []
    for num in xrange(loop_count):
        str_list.append(`num`)

    return ''.join(str_list)
</pre>
<p>If I can find the spare time, I would really like to delve deeper in to the underlying reasons why the method6() is faster than the method 4().  In the meantime, I&#8217;ll continue to kick myself each time I throw a &#8220;+=&#8221; operator between two strings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seancook.com/2009/08/17/string-concatenations-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I chose Python over Ruby</title>
		<link>http://www.seancook.com/2009/07/30/why-i-chose-python-over-ruby/</link>
		<comments>http://www.seancook.com/2009/07/30/why-i-chose-python-over-ruby/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:58:37 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.seancook.com/?p=66</guid>
		<description><![CDATA[I&#8217;m not one to weigh in on religious debates, but as someone who hops around from server to server I get tired of seeing this:

When I almost always see this:

It&#8217;s a matter of convenience for me.  It has nothing to do with any of the magic of Ruby, or my sadistic love for the whitespace [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not one to weigh in on religious debates, but as someone who hops around from server to server I get tired of seeing this:</p>
<p><a href="http://www.seancook.com/wp-content/uploads/2009/07/ruby_FAIL.PNG"><img class="alignnone size-full wp-image-67" title="ruby_FAIL" src="http://www.seancook.com/wp-content/uploads/2009/07/ruby_FAIL.PNG" alt="ruby_FAIL" width="490" height="122" /></a></p>
<p>When I almost always see this:</p>
<p><a href="http://www.seancook.com/wp-content/uploads/2009/07/python_WIN.png"><img class="alignnone size-full wp-image-68" title="python_WIN" src="http://www.seancook.com/wp-content/uploads/2009/07/python_WIN.png" alt="python_WIN" width="571" height="142" /></a></p>
<p>It&#8217;s a matter of convenience for me.  It has nothing to do with any of the magic of Ruby, or my sadistic love for the whitespace of Python.  Instead, my choice is delegated to me by the sysadmins who control the boxes that I use.  On my personal machines I run both interpreters, and often jump between the two languages to keep my skillz up.  But, when it comes to production environments I&#8217;m a Pythonista.</p>
<p>And I&#8217;m OK with that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seancook.com/2009/07/30/why-i-chose-python-over-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
