<?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: Writing generator friendly code</title>
	<atom:link href="http://blog.ezyang.com/2010/03/writing-generator-friendly-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ezyang.com/2010/03/writing-generator-friendly-code/</link>
	<description>Existential Pontification and Generalized Abstract Digressions</description>
	<lastBuildDate>Sun, 05 Feb 2012 23:02:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.ezyang.com/2010/03/writing-generator-friendly-code/comment-page-1/#comment-130</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 04 Mar 2010 05:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ezyang.com/?p=546#comment-130</guid>
		<description>The problem with passing generators to functions is that even if they don&#039;t call len or need arbitrary access, they may want to walk through the list twice. That works fine for generator objects like xrange, but if not if you are using a generator function or generator expression.</description>
		<content:encoded><![CDATA[<p>The problem with passing generators to functions is that even if they don&#8217;t call len or need arbitrary access, they may want to walk through the list twice. That works fine for generator objects like xrange, but if not if you are using a generator function or generator expression.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason C</title>
		<link>http://blog.ezyang.com/2010/03/writing-generator-friendly-code/comment-page-1/#comment-127</link>
		<dc:creator>Jason C</dc:creator>
		<pubDate>Tue, 02 Mar 2010 22:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ezyang.com/?p=546#comment-127</guid>
		<description>You might find this question on Stack Overflow interesting:
http://stackoverflow.com/questions/2322642/index-and-slice-a-generator-in-python</description>
		<content:encoded><![CDATA[<p>You might find this question on Stack Overflow interesting:<br />
<a href="http://stackoverflow.com/questions/2322642/index-and-slice-a-generator-in-python" rel="nofollow">http://stackoverflow.com/questions/2322642/index-and-slice-a-generator-in-python</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Z. Yang</title>
		<link>http://blog.ezyang.com/2010/03/writing-generator-friendly-code/comment-page-1/#comment-126</link>
		<dc:creator>Edward Z. Yang</dc:creator>
		<pubDate>Tue, 02 Mar 2010 19:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ezyang.com/?p=546#comment-126</guid>
		<description>It&#039;s not as effortless as in a lazy language, where you don&#039;t need to tee the lazy list at all. The generator is mutating state under-the-hood, which means you have to be very careful if you&#039;re passing them around.</description>
		<content:encoded><![CDATA[<p>It&#8217;s not as effortless as in a lazy language, where you don&#8217;t need to tee the lazy list at all. The generator is mutating state under-the-hood, which means you have to be very careful if you&#8217;re passing them around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Foord</title>
		<link>http://blog.ezyang.com/2010/03/writing-generator-friendly-code/comment-page-1/#comment-125</link>
		<dc:creator>Michael Foord</dc:creator>
		<pubDate>Tue, 02 Mar 2010 19:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ezyang.com/?p=546#comment-125</guid>
		<description>Forking an infinite generator is hard? Doesn&#039;t itertools.tee do that for you?

http://docs.python.org/library/itertools.html#itertools.tee</description>
		<content:encoded><![CDATA[<p>Forking an infinite generator is hard? Doesn&#8217;t itertools.tee do that for you?</p>
<p><a href="http://docs.python.org/library/itertools.html#itertools.tee" rel="nofollow">http://docs.python.org/library/itertools.html#itertools.tee</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

