<?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: Hi, my name is Jesse and I abuse list comprehensions.</title>
	<atom:link href="http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/</link>
	<description>python, programming and other things</description>
	<lastBuildDate>Sun, 04 Mar 2012 06:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Giulio Piancastelli</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-139338</link>
		<dc:creator>Giulio Piancastelli</dc:creator>
		<pubDate>Sun, 30 Mar 2008 00:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-139338</guid>
		<description>I could argue that the first has a typo, although you&#039;d need to execute it.</description>
		<content:encoded><![CDATA[<p>I could argue that the first has a typo, although you’d need to execute it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giulio Piancastelli</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62347</link>
		<dc:creator>Giulio Piancastelli</dc:creator>
		<pubDate>Sat, 29 Mar 2008 20:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62347</guid>
		<description>I could argue that the first has a typo, although you&#039;d need to execute it.</description>
		<content:encoded><![CDATA[<p>I could argue that the first has a typo, although you’d need to execute it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Hellmann</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62346</link>
		<dc:creator>Doug Hellmann</dc:creator>
		<pubDate>Fri, 28 Mar 2008 22:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62346</guid>
		<description>I find list comprehensions easier to grok when they are written on multiple lines.&lt;br&gt;&lt;br&gt;[ value&lt;br&gt;  for item in sequence&lt;br&gt;  (if condition)&lt;br&gt;]</description>
		<content:encoded><![CDATA[<p>I find list comprehensions easier to grok when they are written on multiple lines.</p>
<p>[ value<br />  for item in sequence<br />  (if condition)<br />]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62341</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 28 Mar 2008 21:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62341</guid>
		<description>or&lt;br&gt;&lt;br&gt;return &#039;,&#039;,join( &#039;{{whizbang&#124;%(foo)s}}&#039; % i for i in myDict[keyname] )</description>
		<content:encoded><![CDATA[<p>or</p>
<p>return ‘,’,join( ‘{{whizbang|%(foo)s}}’ % i for i in myDict[keyname] )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62345</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Fri, 28 Mar 2008 18:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62345</guid>
		<description>[q for q in [z for z in [y for y in [x for x in mylist]]]]&lt;br&gt;&lt;br&gt;mmmm. Delicious. Jam a lambda and a couple of .method() calls on the objects being iterated through and it will be complete.</description>
		<content:encoded><![CDATA[<p>[q for q in [z for z in [y for y in [x for x in mylist]]]]</p>
<p>mmmm. Delicious. Jam a lambda and a couple of .method() calls on the objects being iterated through and it will be complete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62340</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Fri, 28 Mar 2008 18:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62340</guid>
		<description>Still not convoluted enough</description>
		<content:encoded><![CDATA[<p>Still not convoluted enough</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62344</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 28 Mar 2008 18:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62344</guid>
		<description>The following expressions are equivalent, which one would you choose? ;-)&lt;br&gt;&lt;br&gt;mylist&lt;br&gt;[x for x in mylist]&lt;br&gt;[y for y in [x for x in mylist]]&lt;br&gt;[z for z in [y for y in [x for x in mylist]]]&lt;br&gt;[q for q in [z for z in [y for y in [x for x in mylist]]]]&lt;br&gt;&lt;br&gt;ok... you get the point. (Strictly speaking they are not complely equivalent since the first of them doesn&#039;t yield a copy of the list but is rather a reference to the original)</description>
		<content:encoded><![CDATA[<p>The following expressions are equivalent, which one would you choose? ;-)</p>
<p>mylist<br />[x for x in mylist]<br />[y for y in [x for x in mylist]]<br />[z for z in [y for y in [x for x in mylist]]]<br />[q for q in [z for z in [y for y in [x for x in mylist]]]]</p>
<p>ok… you get the point. (Strictly speaking they are not complely equivalent since the first of them doesn’t yield a copy of the list but is rather a reference to the original)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virgil Dupras</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62343</link>
		<dc:creator>Virgil Dupras</dc:creator>
		<pubDate>Fri, 28 Mar 2008 17:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62343</guid>
		<description>What about:&lt;br&gt;&lt;br&gt;whizzes = (d[&#039;foo&#039;] for d in myDict[keyname])&lt;br&gt;return &#039;,&#039;.join(&#039;{{whizbang &#124;%s}}&#039; % whiz for whiz in whizzes)</description>
		<content:encoded><![CDATA[<p>What about:</p>
<p>whizzes = (d[’foo’] for d in myDict[keyname])<br />return ‘,’.join(‘{{whizbang |%s}}’ % whiz for whiz in whizzes)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62339</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 28 Mar 2008 17:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62339</guid>
		<description>not to mention return &#039;,&#039;.join([&#039;{{whizbang&#124;%s}}&#039; % v for v in myDict[keyname].values()])</description>
		<content:encoded><![CDATA[<p>not to mention return ‘,’.join([‘{{whizbang|%s}}’ % v for v in myDict[keyname].values()])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/comment-page-1/#comment-62342</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Fri, 28 Mar 2008 16:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/2008/03/28/hi-my-name-is-jesse-and-i-abuse-list-comprehensions/#comment-62342</guid>
		<description>Hmm, good question. I&#039;ll have to try that one out, although I still have to go with option 3</description>
		<content:encoded><![CDATA[<p>Hmm, good question. I’ll have to try that one out, although I still have to go with option 3</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 725/725 objects using disk: basic

Served from: jessenoller.com @ 2012-05-21 06:19:27 -->
