<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dress To Survive</title>
	<atom:link href="http://dresstosurvive.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dresstosurvive.wordpress.com</link>
	<description>squeezing orange juice from apples</description>
	<pubDate>Fri, 21 Dec 2007 19:59:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Six Function Calculator in One Line of Python</title>
		<link>http://dresstosurvive.wordpress.com/2007/12/21/six-function-calculator-in-one-line-of-python/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/12/21/six-function-calculator-in-one-line-of-python/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 19:59:09 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[Unusual]]></category>

		<category><![CDATA[Zombies]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/12/21/six-function-calculator-in-one-line-of-python/</guid>
		<description><![CDATA[Usage Instructions

Copy
Paste
Press Enter
Type one simple expression (i.e. 2 + 2 or -42 ^ 16)  per line
Press Ctrl-D (EOL) to evaluate all the expressions

print map((lambda environ:environ[0]['ops'][(environ[0]['re'].match(environ[1]).group(&#8217;op&#8217;)or&#8217;+')](int((environ[0]['re'].match(environ[1]).group(&#8217;lvalue&#8217;)or 0)),int((environ[0]['re'].match(environ[1]).group(&#8217;rvalue&#8217;)or 0)))),(environ for environ in(({&#8217;ops&#8217;:{&#8217;+':__import__(&#8221;operator&#8221;).add,&#8217;-':__import__(&#8221;operator&#8221;).sub,&#8217;*':__import__(&#8221;operator&#8221;).mul,&#8217;^':pow,&#8217;%':__import__(&#8221;operator&#8221;).mod,&#8217;/':__import__(&#8221;operator&#8221;).div},&#8217;re&#8217;:__import__(&#8221;re&#8221;).compile(r&#8217;^(?P[\+\-]{,1}(\s*)\d+)(\s*)((?P[\+\-\*\^\%/])(\s*)(?P[\+\-]{,1}(\s*)\d+)(\s*)){,1}$&#8217;)},line)for line in __import__(&#8221;sys&#8221;).stdin.readlines())))
Commented Version
#   Here, we print out the final list of evaluated expressions
#   returned by mapping a lambda over [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>Usage Instructions</b></p>
<ul>
<li>Copy</li>
<li>Paste</li>
<li>Press Enter</li>
<li>Type one simple expression (i.e. 2 + 2 or -42 ^ 16)  per line</li>
<li>Press Ctrl-D (EOL) to evaluate all the expressions</li>
</ul>
<p><code>print map((lambda environ:environ[0]['ops'][(environ[0]['re'].match(environ[1]).group(&#8217;op&#8217;)or&#8217;+')](int((environ[0]['re'].match(environ[1]).group(&#8217;lvalue&#8217;)or 0)),int((environ[0]['re'].match(environ[1]).group(&#8217;rvalue&#8217;)or 0)))),(environ for environ in(({&#8217;ops&#8217;:{&#8217;+':__import__(&#8221;operator&#8221;).add,&#8217;-':__import__(&#8221;operator&#8221;).sub,&#8217;*':__import__(&#8221;operator&#8221;).mul,&#8217;^':pow,&#8217;%':__import__(&#8221;operator&#8221;).mod,&#8217;/':__import__(&#8221;operator&#8221;).div},&#8217;re&#8217;:__import__(&#8221;re&#8221;).compile(r&#8217;^(?P[\+\-]{,1}(\s*)\d+)(\s*)((?P[\+\-\*\^\%/])(\s*)(?P[\+\-]{,1}(\s*)\d+)(\s*)){,1}$&#8217;)},line)for line in __import__(&#8221;sys&#8221;).stdin.readlines())))</code></p>
<p><b>Commented Version</b></p>
<p><code>#   Here, we print out the final list of evaluated expressions<br />
#   returned by mapping a lambda over a generator comprehension<br />
print map(<br />
&nbsp;&nbsp;&nbsp;&nbsp;#   This lambda evaluates one line<br />
&nbsp;&nbsp;&nbsp;&nbsp;(lambda environ:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   Environ is a tuple containing the tools and the current line<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;environ[0]['ops']<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   This gets the right operation to perform<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[(environ[0]['re'].match(environ[1]).group(&#8217;op&#8217;) or &#8216;+&#8217;)](<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   Grab our lvalue and our rvalue from the expression<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int((environ[0]['re'].match(environ[1]).group(&#8217;lvalue&#8217;) or 0)),<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int((environ[0]['re'].match(environ[1]).group(&#8217;rvalue&#8217;) or 0))<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#038;nbsp <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
&nbsp;&nbsp;&nbsp;&nbsp;),<br />
&nbsp;&nbsp;&nbsp;&nbsp;#   This is a generator comprehension returning the tuple<br />
&nbsp;&nbsp;&nbsp;&nbsp;(environ for environ in (<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   The first item of the tuple is a dict containing useful modules<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   and &#8220;variables&#8221; such as the regex matcher<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(   {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   Available operations, stolen from the operator module<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;ops&#8217;:  {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;+': __import__(&#8221;operator&#8221;).add,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;-': __import__(&#8221;operator&#8221;).sub,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;*': __import__(&#8221;operator&#8221;).mul,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;^': pow,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;%': __import__(&#8221;operator&#8221;).mod,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;/': __import__(&#8221;operator&#8221;).div<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   The regex matcher to split up an expression into groups<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   Tweaking the last {,1} into {,} or * would allow you to parse<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   more complicated expressions, albeit requiring a change to<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   the lambda<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8217;re&#8217;:   __import__(&#8221;re&#8221;).compile(r&#8217;^(?P[\+\-]{,1}(\s*)\d+)(\s*)((?P[\+\-\*\^\%/])(\s*)(?P[\+\-]{,1}(\s*)\d+)(\s*)){,1}$&#8217;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   The current line<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;line)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#   Grab all lines until the user hits Ctrl-D (EOF)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for line in __import__(&#8221;sys&#8221;).stdin.readlines())<br />
&nbsp;&nbsp;&nbsp;&#038;nbsp <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
)</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/179/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/179/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=179&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/12/21/six-function-calculator-in-one-line-of-python/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Juno&#8217;s Hand Drawn Opening Titles</title>
		<link>http://dresstosurvive.wordpress.com/2007/12/18/junos-hand-drawn-opening-titles/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/12/18/junos-hand-drawn-opening-titles/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 17:37:46 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Art]]></category>

		<category><![CDATA[Design]]></category>

		<category><![CDATA[Movies]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/12/18/junos-hand-drawn-opening-titles/</guid>
		<description><![CDATA[The opening titles for Diablo Cody&#8217;s Juno are beautifully hand-drawn, courtesy of Shadowplay Studio. They remind me of coloring over a photocopy with a crayon or colored pencil. The accompanying music is also an excellent, up-beat choice. If you&#8217;ve read the plot synopsis on IMDB or seen the film, it&#8217;s also ironic touch.
   [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The <a href="http://www.shadowplaystudio.com/juno/">opening titles</a> for <a href="http://buzzfeed.com/buzz/Diablo_Cody">Diablo Cody&#8217;s</a> <a href="http://www.imdb.com/title/tt0467406/">Juno</a> are beautifully hand-drawn, courtesy of Shadowplay Studio. They remind me of coloring over a photocopy with a crayon or colored pencil. The accompanying music is also an excellent, up-beat choice. If you&#8217;ve read the plot synopsis on IMDB or seen the film, it&#8217;s also ironic touch.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/178/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/178/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=178&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/12/18/junos-hand-drawn-opening-titles/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Updated ystockquote.py Module for Retrieving Yahoo! Stock Quotes in Python</title>
		<link>http://dresstosurvive.wordpress.com/2007/10/18/updated-ystockquotepy-module-for-retrieving-yahoo-stock-quotes-in-python/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/10/18/updated-ystockquotepy-module-for-retrieving-yahoo-stock-quotes-in-python/#comments</comments>
		<pubDate>Thu, 18 Oct 2007 17:37:22 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/10/18/updated-ystockquotepy-module-for-retrieving-yahoo-stock-quotes-in-python/</guid>
		<description><![CDATA[I&#8217;ve updated Corey Goldberg&#8217;s ystockquote.py module. I originally emailed him the updated code, but I haven&#8217;t received a reply. Since it&#8217;s LGPL&#8217;d, here is the updated version for your perusal. 
Corey, if you&#8217;re out there, please email me back.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve updated Corey Goldberg&#8217;s <a href="http://www.goldb.org/ystockquote.html">ystockquote.py</a> module. I originally emailed him the updated code, but I haven&#8217;t received a reply. Since it&#8217;s LGPL&#8217;d, here is the <a href="http://rapidshare.com/files/63479912/ystockquote.py.html">updated version</a> for your perusal. </p>
<p>Corey, if you&#8217;re out there, please email me back.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/177/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/177/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=177&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/10/18/updated-ystockquotepy-module-for-retrieving-yahoo-stock-quotes-in-python/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GNU MP Floating Point Extension for Python 3000</title>
		<link>http://dresstosurvive.wordpress.com/2007/09/27/gnu-mp-floating-point-extension-for-python-3000/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/09/27/gnu-mp-floating-point-extension-for-python-3000/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 17:26:37 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Math]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/09/27/gnu-mp-floating-point-extension-for-python-3000/</guid>
		<description><![CDATA[I&#8217;ve been quietly working on an extension for Python 3000 (current release: 3.0a1) that provides fast, infinite precision floating point via the GNU MP library. You can find out all the details and get the code on the MPF Python page.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve been quietly working on an extension for Python 3000 (current release: 3.0a1) that provides fast, infinite precision floating point via the GNU MP library. You can find out all the details and get the code on the <a href="http://dresstosurvive.wordpress.com/mpf-python/">MPF Python page</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/176/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/176/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=176&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/09/27/gnu-mp-floating-point-extension-for-python-3000/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mourning Media Teaser #1</title>
		<link>http://dresstosurvive.wordpress.com/2007/08/24/mourning-media-teaser-1/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/08/24/mourning-media-teaser-1/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 17:35:30 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Gaming]]></category>

		<category><![CDATA[Horror]]></category>

		<category><![CDATA[Mourning]]></category>

		<category><![CDATA[Zombies]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/08/24/mourning-media-teaser-1/</guid>
		<description><![CDATA[I&#8217;ve been slowly putting together a mod team and working on some stuff behind the scenes. Last night, I threw together this little image. If you&#8217;re wondering what the game might feel like, just soak in it. Check back later for some audio.  

       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve been slowly putting together a mod team and working on some stuff behind the scenes. Last night, I threw together this little image. If you&#8217;re wondering what the game might feel like, just soak in it. Check back later for some audio. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img src='http://dresstosurvive.files.wordpress.com/2007/08/mourning_billboard_drift.png' alt='Mourning' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/171/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/171/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=171&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/08/24/mourning-media-teaser-1/feed/</wfw:commentRss>
	
		<media:content url="http://dresstosurvive.files.wordpress.com/2007/08/mourning_billboard_drift.png" medium="image">
			<media:title type="html">Mourning</media:title>
		</media:content>
	</item>
		<item>
		<title>The Push versus Pull Model of Software Development</title>
		<link>http://dresstosurvive.wordpress.com/2007/08/20/the-push-versus-pull-model-of-software-development/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/08/20/the-push-versus-pull-model-of-software-development/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 23:36:40 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Lifehacking]]></category>

		<category><![CDATA[Organization]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/08/20/the-push-versus-pull-model-of-software-development/</guid>
		<description><![CDATA[Shell pipelines, reading files, and streaming data; structure your code for maximal efficiency.
Have you ever considered why your code bottlenecks at certain points? It pays to distinguish between data that is pushed to its next destination and data that is pulled. Pulling is a great thing when the bottleneck is the user. Pulling data saves [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>Shell pipelines, reading files, and streaming data; structure your code for maximal efficiency.</b></p>
<p>Have you ever considered why your code bottlenecks at certain points? It pays to distinguish between data that is pushed to its next destination and data that is pulled. Pulling is a great thing when the bottleneck is the user. Pulling data saves resources when there is little or no work to be done.</p>
<p>However, things change when you need to operate on a large data set or perform multiple transformations in sequence. Pulling data becomes ineffective—the slowest link in the chain becomes a choke point. This can be significantly alleviated by pushing data instead. </p>
<p>Pushing data works best if you can structure your chain of operations to perform the most expensive ones first. By doing this, the later operations are able to execute without starving for data. As each operation completes, it sends the transformed data or a subset of it to the next component. </p>
<p>Care must be taken to avoid placing heavier duty operations later, otherwise you risk flooding a component with data. In the case that a more expensive operation must be performed later, it is best to pull data into that component.</p>
<p>Pulling data entails components completing their work as fast as possible, while also serving requests to dump new data. A component requests more data as needed from the previous component. If there is nothing available, it must sleep and poll at a later date or employ mechanism to be signaled when new data is available. Reading a file is a pull operation, because the component must wait for the drive before the data is supplied.</p>
<p>Shell pipelines are an example of pushing data. Suppose a user wished to search their movies for all stored in AVI containers. They might construct a shell pipeline looking something like below. First, the listing of all possible movies would be created. Then, the subset of those stored in AVI containers would be created. </p>
<p><img src='http://dresstosurvive.files.wordpress.com/2007/08/filter_concept.png' alt='Pushing Data' /></p>
<p>This method of structuring data by progressively filtering results is at the heart of good data mining practice. Note that at each stage, you can take the new data set and perform various operations on it. This allows for cheap non-destructive updates provided you maintain a copy of the data set. As each subsequent operation is cheaper, filters can be added and removed at will.</p>
<p>Pushing works well for things like streaming music. You don&#8217;t want to starve the final output. If you use a pull model which requests an update every few milliseconds, you might experience skipping or delays.</p>
<p>Pulling works well for things like AJAX interfaces. You don&#8217;t want to continuously do work, but you want data whenever the user asks for it. Ideally, on the server side, the code will be structured to do its processing in a push fashion and provide an interface for data to be pulled.</p>
<p>In short, consider whether your operations are driven by user input, physical motion (such as in a disk drive) or whether they are limited by processing power. Also take into account whether the final output must be available on a time-critical or realtime basis. In a multiplayer online game, data becomes irrelevant when it is out of date and must be discarded. Other operations, such as analysing stock market activity, will not allow for data to be discarded at random.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/166/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/166/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=166&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/08/20/the-push-versus-pull-model-of-software-development/feed/</wfw:commentRss>
	
		<media:content url="http://dresstosurvive.files.wordpress.com/2007/08/filter_concept.png" medium="image">
			<media:title type="html">Pushing Data</media:title>
		</media:content>
	</item>
		<item>
		<title>Retrieving GET and POST Variables with Mod_python</title>
		<link>http://dresstosurvive.wordpress.com/2007/08/20/retrieving-get-and-post-variables-with-mod_python/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/08/20/retrieving-get-and-post-variables-with-mod_python/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 20:57:50 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/08/20/retrieving-get-and-post-variables-with-mod_python/</guid>
		<description><![CDATA[Painlessly retrieve information from forms and queries.
If you&#8217;re frustrated trying to retrieve the GET and POST variables you&#8217;re used to with PHP or some other language, check out get_env.
An important thing to note is that a POST variable of the same name as a GET variable in a request will overwrite the GET value.
Under the [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>Painlessly retrieve information from forms and queries.</b></p>
<p>If you&#8217;re frustrated trying to retrieve the GET and POST variables you&#8217;re used to with PHP or some other language, check out <b><a href="#get_env">get_env</a></b>.</p>
<p>An important thing to note is that a POST variable of the same name as a GET variable in a request will overwrite the GET value.</p>
<p>Under the hood, <a href="#get_env">get_env</a> uses a few tricks to maximize performance. First, it tries to use the version of <em>parse_qsl</em> provided by Mod_python instead of the standard one provided by cgi as it is much faster. Next, the GET values are retrieved, but not automatically parsed. If the method was not POST, <a href="#get_env">get_env</a> does not attempt to find any POST variables. If it was, the values are appended to the query string containing any possible GET values. Finally, the query string is parsed and transformed into a dictionary using the standard dictionary constructor. You might <a href="http://dresstosurvive.wordpress.com/2007/08/18/creating-dictionaries-from-list-of-tuples-in-python/">consider another option</a>, but this is the fastest in this case.</p>
<pre>options = {"content_type": "text/plain"}

from mod_python import apache
try:
    from mod_python.util import parse_qsl
except ImportError:
    from cgi import parse_qsl

<b><a name="get_env">def get_env(req):</a></b>
    #   grab GET variables
    req.add_common_vars()
    req.content_type    = options['content_type']
    query               = req.subprocess_env['QUERY_STRING']

    #   grab POST variables
    if req.subprocess_env['REQUEST_METHOD'] == &#8216;POST&#8217;:
        query += &#8216;&amp;&#8217; + req.read()

    #   break down the urlencoded query string
    query       = parse_qsl(query)
    http_var    = dict(query)

    return http_var

def handler(req):
    <b>http_env = get_env(req)</b>

    #   lookie ma, we got an environment!
    for key, value in http_env.items():
        req.write(&#8221;%s: %s\n&#8221; % (key, value))

    return apache.OK</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/165/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/165/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=165&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/08/20/retrieving-get-and-post-variables-with-mod_python/feed/</wfw:commentRss>
		</item>
		<item>
		<title>An Impossible Distance</title>
		<link>http://dresstosurvive.wordpress.com/2007/08/18/an-impossible-distance/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/08/18/an-impossible-distance/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 20:21:35 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Language]]></category>

		<category><![CDATA[Literature]]></category>

		<category><![CDATA[Philosophy]]></category>

		<category><![CDATA[Psychotic]]></category>

		<category><![CDATA[Writing]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/08/18/an-impossible-distance/</guid>
		<description><![CDATA[Enjoying the ride for its own sake.
Do you often find yourself rushing to finish a book, impatient for the ending? 
Slow down and examine the scenery. Mark Z. Danielewski&#8217;s fantastic debut, House of Leaves, has something to remind readers of. In the words of Johnny Truant, annotator to The Navidson Record:
&#8220;&#8230;one sinking ship after another, [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>Enjoying the ride for its own sake.</b></p>
<p>Do you often find yourself rushing to finish a book, impatient for the ending? </p>
<p>Slow down and examine the scenery. Mark Z. Danielewski&#8217;s <a href="http://www.amazon.com/House-Leaves-Mark-Z-Danielewski/dp/0375703764">fantastic debut</a>, <a href="http://en.wikipedia.org/wiki/House_of_Leaves"><em>House of Leaves</em></a>, has something to remind readers of. In the words of Johnny Truant, annotator to <em>The Navidson Record</em>:</p>
<blockquote><p>&#8220;&#8230;one sinking ship after another, in fact that was the conclusion to every single story he told, so that we, his strange audience learned not to wonder about the end but paid more attention to the tale preceding the end&#8230;&#8221;</p></blockquote>
<p><em>House of Leaves</em> is blithely unaware of its own labyrinthine character for the majority of the novel; this little passage provides an exception. We, the readers, are reminded that the soul of a book is in the journey it takes us on, not the destination we arrive at.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/164/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/164/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=164&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/08/18/an-impossible-distance/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Creating Dictionaries from Lists of Tuples in Python</title>
		<link>http://dresstosurvive.wordpress.com/2007/08/18/creating-dictionaries-from-list-of-tuples-in-python/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/08/18/creating-dictionaries-from-list-of-tuples-in-python/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 18:25:06 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/08/18/creating-dictionaries-from-list-of-tuples-in-python/</guid>
		<description><![CDATA[Thoughts and Benchmarks.
I tested various ways of building dictionaries from lists of tuples in Python. Three ways to accomplish this are benchmarked in the code below. Not surprisingly, the default dict() constructor is the fastest. More interesting is that the functional version using map and lambda is the slowest by far. The looping version shows [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>Thoughts and Benchmarks.</b></p>
<p>I tested various ways of building dictionaries from lists of tuples in Python. Three ways to accomplish this are benchmarked in the code below. Not surprisingly, the default <em>dict()</em> constructor is the fastest. More interesting is that the functional version using <em>map</em> and <em>lambda</em> is the slowest by far. The looping version shows decent performance, but nothing special.</p>
<p>On a Pentium 4, 2.6ghz with 760mb of RAM under Python 2.5 on Win32 the benchmark gives these results:</p>
<blockquote><p>$ python prof.py<br />
<b>map_list_to_dict</b> took <em>46.063ms</em><br />
<b>loop_list_to_dict</b> took <em>12.511ms</em><br />
<b>build_dict_from_list</b> took <em>11.182ms</em></p></blockquote>
<p>In #python @ irc.freenode.net, bpietro54 reported similar numbers on an unidentified Linux box. </p>
<blockquote><p>$ python prof.py<br />
<b>map_list_to_dict</b> took <em>62.500ms</em><br />
<b>loop_list_to_dict</b> took <em>16.900ms</em><br />
<b>build_dict_from_list</b> took <em>14.000ms</em></p></blockquote>
<p>The obligatory benchmark chart (smaller bars are faster):</p>
<p><img src='http://dresstosurvive.files.wordpress.com/2007/08/benchmark.png' alt='Benchmark Results' /></p>
<p>Unless you have a need to add tuples to a dictionary occasionally, <em>dict()</em> will be the fastest. In that case, adding them incrementally might be cheaper.</p>
<pre>import time

def print_timing(func):
    def wrapper(*arg):
        t1 = time.clock()
        res = func(*arg)
        t2 = time.clock()
        return (t2-t1)*1000.0
    return wrapper

def benchmark(func, list_of_tuples):
    avg_time = [func(list_of_tuples) for i in xrange(100)]
    return sum(avg_time) / len(avg_time)

#   Dataset of 10,000 tuples
list_of_tuples = [(&quot;key_%d&quot; % i, i) for i in xrange(10000)]

#   The messy functional approach
@print_timing
def map_list_to_dict(list_of_tuples):
    mapped_dict = {}
    map((lambda mapping: mapped_dict.update({mapping[0]: mapping[1]})), list_of_tuples)
    return mapped_dict

#   The obvious, but overcomplicated way
@print_timing
def loop_list_to_dict(list_of_tuples):
    looped_dict = {}
    for key, value in list_of_tuples:
        looped_dict[key] = value
    return looped_dict

#   Control, the normal way to do it
@print_timing
def build_dict_from_list(list_of_tuples):
    return dict(list_of_tuples)

#   The results! Hallelujah!
print &quot;map_list_to_dict took %0.3fms&quot; % benchmark(map_list_to_dict, list_of_tuples)
print &quot;loop_list_to_dict took %0.3fms&quot; % benchmark(loop_list_to_dict, list_of_tuples)
print &quot;build_dict_from_list took %0.3fms&quot; % benchmark(build_dict_from_list, list_of_tuples)</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/159/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/159/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=159&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/08/18/creating-dictionaries-from-list-of-tuples-in-python/feed/</wfw:commentRss>
	
		<media:content url="http://dresstosurvive.files.wordpress.com/2007/08/benchmark.png" medium="image">
			<media:title type="html">Benchmark Results</media:title>
		</media:content>
	</item>
		<item>
		<title>Scrounging for Dinner</title>
		<link>http://dresstosurvive.wordpress.com/2007/08/01/scrounging-for-dinner/</link>
		<comments>http://dresstosurvive.wordpress.com/2007/08/01/scrounging-for-dinner/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 00:15:20 +0000</pubDate>
		<dc:creator>dresstosurvive</dc:creator>
		
		<category><![CDATA[Food]]></category>

		<category><![CDATA[Lifehacking]]></category>

		<category><![CDATA[Misadventures]]></category>

		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://dresstosurvive.wordpress.com/2007/08/01/scrounging-for-dinner/</guid>
		<description><![CDATA[And this is what I came up with:

       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>And this is what I came up with:</p>
<p><img src="http://dresstosurvive.files.wordpress.com/2007/08/dinner.jpg" alt="Leftovers galore" /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dresstosurvive.wordpress.com/158/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dresstosurvive.wordpress.com/158/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dresstosurvive.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dresstosurvive.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dresstosurvive.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dresstosurvive.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dresstosurvive.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dresstosurvive.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dresstosurvive.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dresstosurvive.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dresstosurvive.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dresstosurvive.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dresstosurvive.wordpress.com&blog=462507&post=158&subd=dresstosurvive&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dresstosurvive.wordpress.com/2007/08/01/scrounging-for-dinner/feed/</wfw:commentRss>
	
		<media:content url="http://dresstosurvive.files.wordpress.com/2007/08/dinner.jpg" medium="image">
			<media:title type="html">Leftovers galore</media:title>
		</media:content>
	</item>
	</channel>
</rss>