<?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>macolyte.net &#187; Python</title>
	<atom:link href="http://macolyte.net/category/computers/programming/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://macolyte.net</link>
	<description>a.j.&#039;s adventures in mediocrity</description>
	<lastBuildDate>Fri, 08 Aug 2008 02:46:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I&#8217;m a little scared&#8230;</title>
		<link>http://macolyte.net/2006/04/03/im-a-little-scared/</link>
		<comments>http://macolyte.net/2006/04/03/im-a-little-scared/#comments</comments>
		<pubDate>Mon, 03 Apr 2006 13:12:20 +0000</pubDate>
		<dc:creator>a.j.</dc:creator>
				<category><![CDATA[Obj-C/Cocoa]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://macolyte.net/?p=31</guid>
		<description><![CDATA[For the past week+ I&#8217;ve been reading Programming in Objective-C.  That&#8217;s not the scary part.  The scary part is that I&#8217;m thoroughly enjoying it and I might actually like Objective-C better than I like Python.  At least so far.  &#8220;How can that be?&#8221; you may ask.  &#8220;Python&#8217;s syntax is so [...]]]></description>
			<content:encoded><![CDATA[<p>For the past week+ I&#8217;ve been reading <a href="http://www.amazon.com/exec/obidos/redirect?tag=incorrigibler-20%26link_code=xm2%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=0672325861%2526tag=incorrigibler-20%2526lcode=xm2%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/0672325861%25253FSubscriptionId=0EMV44A9A5YT1RVDGZ82" title="View product details at Amazon">Programming in Objective-C</a>.  That&#8217;s not the scary part.  The scary part is that I&#8217;m thoroughly enjoying it and I might actually like Objective-C better than I like Python.  At least so far.  &#8220;How can that be?&#8221; you may ask.  &#8220;Python&#8217;s syntax is so much nicer.  And you can do so much with so little typing.  And don&#8217;t even get me started on memory management.  Are you insane???&#8221;  Perhaps I am.  The long and the short of it is I grok Obj-C&#8217;s object model better, even though it requires more typing and having explicit getters and setters.  And if I use Obj-C, I can use Xcode [yes, I know about PyObjC].  I haven&#8217;t gotten to working with files or strings or lists yet, so my opinion my change at a later date [you really can't beat list comprehensions].</p>
]]></content:encoded>
			<wfw:commentRss>http://macolyte.net/2006/04/03/im-a-little-scared/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python Playing</title>
		<link>http://macolyte.net/2006/03/21/python-playing/</link>
		<comments>http://macolyte.net/2006/03/21/python-playing/#comments</comments>
		<pubDate>Tue, 21 Mar 2006 14:55:04 +0000</pubDate>
		<dc:creator>a.j.</dc:creator>
				<category><![CDATA[Net Life]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://macolyte.net/?p=30</guid>
		<description><![CDATA[The other day in IRC, I was having fun with typing things backwards.  I decided to write a Python script to automate my silliness.  I came up with this one-liner:
print ''.join([x for x in reversed(raw_input("String here: "))])
Josh came up with this one-liner:
print "stringtoreverse"[::-1]
The main problem with my script is that it uses &#8220;reversed()&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>The other day in IRC, I was having fun with typing things backwards.  I decided to write a Python script to automate my silliness.  I came up with this one-liner:</p>
<p><code>print ''.join([x for x in reversed(raw_input("String here: "))])</code></p>
<p>Josh came up with this one-liner:</p>
<p><code>print "stringtoreverse"[::-1]</code></p>
<p>The main problem with my script is that it uses &#8220;reversed()&#8221;, which is a feature available only in Python 2.4.x, so it doesn&#8217;t work with my IRC client [it uses the Mac system Python which is 2.3.5].  Plus MacIrssi didn&#8217;t like the raw_input().  Josh&#8217;s is much simpler and works with all versions of Python.  But I think mine looks cooler.  <img src='http://macolyte.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://macolyte.net/2006/03/21/python-playing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Google of Pythons</title>
		<link>http://macolyte.net/2006/02/17/a-google-of-pythons/</link>
		<comments>http://macolyte.net/2006/02/17/a-google-of-pythons/#comments</comments>
		<pubDate>Fri, 17 Feb 2006 23:28:11 +0000</pubDate>
		<dc:creator>a.j.</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://macolyte.net/?p=20</guid>
		<description><![CDATA[I wish I were talented enough to work at Google and sit around having conversations like this one, which Guido recounted on python-dev:

Over lunch with Alex Martelli, he proposed that a subclass of dict with this behavior (but implemented in C) would be a good addition to the language. It looks like it wouldn&#8217;t be [...]]]></description>
			<content:encoded><![CDATA[<p>I wish I were talented enough to work at Google and sit around having conversations like this one, which Guido recounted on python-dev:</p>
<blockquote><p>
Over lunch with Alex Martelli, he proposed that a subclass of dict with this behavior (but implemented in C) would be a good addition to the language. It looks like it wouldn&#8217;t be hard to implement. It could be a builtin named defaultdict. The first, required, argument to the constructor should be the default value. Remaining arguments (even keyword args) are passed unchanged to the dict constructor.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://macolyte.net/2006/02/17/a-google-of-pythons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python Challenge</title>
		<link>http://macolyte.net/2006/02/02/17/</link>
		<comments>http://macolyte.net/2006/02/02/17/#comments</comments>
		<pubDate>Thu, 02 Feb 2006 18:40:04 +0000</pubDate>
		<dc:creator>a.j.</dc:creator>
				<category><![CDATA[Net Life]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://macolyte.net/?p=17</guid>
		<description><![CDATA[In an effort to find something to focus my efforts on, I decided to revisit the Python Challenge.  I was able to make it through three of the challenges yesterday, bringing me up to Level 12.  In solving those 3 levels, I was reminded of why I gave up in the first place. [...]]]></description>
			<content:encoded><![CDATA[<p>In an effort to find something to focus my efforts on, I decided to revisit the <a href="http://pythonchallenge.com">Python Challenge</a>.  I was able to make it through three of the challenges yesterday, bringing me up to Level 12.  In solving those 3 levels, I was reminded of why I gave up in the first place.  There&#8217;s one thing I completely despise in these challanges, and that is the fact that quite a few of them require you to do some kind of image manipulation [usually using <a href="http://www.pythonware.com/library/index.htm">PIL</a>].  While I can see the value in exposing people to 3rd party modules, I don&#8217;t see the value in relying on them as heavily as the challenges do.  The task for Level 12 includes doing manipulation on a binary file, which I have never done and probably never will.  The hints point at using a hex editor, again something with which I have no experience.  So I&#8217;m stuck here on Level 12, with no ideas on what to do, or even what to Google for.  Overall, I like the idea of the Python Challenge, I just wish it weren&#8217;t so challenging for a n00b like me.  <img src='http://macolyte.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://macolyte.net/2006/02/02/17/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
