<?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: Iterators, Iterables, and Generators! Oh, my!</title>
	<atom:link href="http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/</link>
	<description>one man's journey into python...</description>
	<lastBuildDate>Thu, 27 May 2010 10:43:57 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: selsine</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-161342</link>
		<dc:creator>selsine</dc:creator>
		<pubDate>Tue, 23 Feb 2010 21:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-161342</guid>
		<description>Hi Henry,

Thanks for the kind words. I&#039;m trying to resume blogging as best I can but a one moth old eats up a lot of free time! Not to mention moving cities and a new house!

I have something that I&#039;m hoping to get up soon, and hopefully in the future there will be less time between posts!

mark</description>
		<content:encoded><![CDATA[<p>Hi Henry,</p>
<p>Thanks for the kind words. I&#8217;m trying to resume blogging as best I can but a one moth old eats up a lot of free time! Not to mention moving cities and a new house!</p>
<p>I have something that I&#8217;m hoping to get up soon, and hopefully in the future there will be less time between posts!</p>
<p>mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Dominik</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-161276</link>
		<dc:creator>Henry Dominik</dc:creator>
		<pubDate>Tue, 23 Feb 2010 13:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-161276</guid>
		<description>He seems to have resumed blogging again. Check out the post he made in January of this year. I&#039;m happy he&#039;s back :)</description>
		<content:encoded><![CDATA[<p>He seems to have resumed blogging again. Check out the post he made in January of this year. I&#8217;m happy he&#8217;s back <img src='http://www.learningpython.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PC Repair</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-154080</link>
		<dc:creator>PC Repair</dc:creator>
		<pubDate>Sun, 29 Nov 2009 17:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-154080</guid>
		<description>Just wondering why we have not seen you in a long time. 
I personally have missed your amazing step-by-step tutorial.

We hope you&#039;re fine and wish you the very best.
Good luck</description>
		<content:encoded><![CDATA[<p>Just wondering why we have not seen you in a long time.<br />
I personally have missed your amazing step-by-step tutorial.</p>
<p>We hope you&#8217;re fine and wish you the very best.<br />
Good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cillia johnson</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-154079</link>
		<dc:creator>Cillia johnson</dc:creator>
		<pubDate>Sun, 29 Nov 2009 17:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-154079</guid>
		<description>This is great. I was having difficulties because of spaces in my indentation, but that has now been solved. It took me days to figure the indentation problem out as a beginner :)

Nice tutorial BTW ..</description>
		<content:encoded><![CDATA[<p>This is great. I was having difficulties because of spaces in my indentation, but that has now been solved. It took me days to figure the indentation problem out as a beginner <img src='http://www.learningpython.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Nice tutorial BTW ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SoftwareExplorer</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-153423</link>
		<dc:creator>SoftwareExplorer</dc:creator>
		<pubDate>Thu, 19 Nov 2009 23:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-153423</guid>
		<description>You said &quot;handled so *wall*&quot; instead of &quot;handled so *well*&quot;. Ted mentioned this, but he was talking about a few other errors two, so you probably didn&#039;t notice the change.

Thanks for these tutorials. They are the best I have found so far.</description>
		<content:encoded><![CDATA[<p>You said &#8220;handled so *wall*&#8221; instead of &#8220;handled so *well*&#8221;. Ted mentioned this, but he was talking about a few other errors two, so you probably didn&#8217;t notice the change.</p>
<p>Thanks for these tutorials. They are the best I have found so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ksamuel</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-151649</link>
		<dc:creator>ksamuel</dc:creator>
		<pubDate>Wed, 07 Oct 2009 10:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-151649</guid>
		<description>Makes me think of this tuto :

http://stackoverflow.com/questions/231767#answer-231855</description>
		<content:encoded><![CDATA[<p>Makes me think of this tuto :</p>
<p><a href="http://stackoverflow.com/questions/231767#answer-231855" rel="nofollow">http://stackoverflow.com/questions/231767#answer-231855</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rune</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-148472</link>
		<dc:creator>Rune</dc:creator>
		<pubDate>Mon, 13 Jul 2009 12:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-148472</guid>
		<description>Very informative and well written article!</description>
		<content:encoded><![CDATA[<p>Very informative and well written article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jarav</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-148411</link>
		<dc:creator>jarav</dc:creator>
		<pubDate>Sat, 11 Jul 2009 09:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-148411</guid>
		<description>Sorry for that last question. You have said in your article that the iterator protocol demands that once StopIteration is raised, it should continue to be raised.</description>
		<content:encoded><![CDATA[<p>Sorry for that last question. You have said in your article that the iterator protocol demands that once StopIteration is raised, it should continue to be raised.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jarav</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-148408</link>
		<dc:creator>jarav</dc:creator>
		<pubDate>Sat, 11 Jul 2009 09:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-148408</guid>
		<description>Hi,
Thanks for the article. Am just discovering the joy of python programming.

I am confused about why &quot;iterators...are only good for one pass over the data.&quot;. Surely that depends on how we define the &#039;next&#039; function. Suppose we define the &#039;next&#039; function in Listing 2 like this( i reset the counter just before StopIteration is raised ):

def next(self):
        if (self.current_item == len(self.data)):
            # reset counter
            self.current_item = 0
            raise StopIteration
        else:
            byte_value = ord(self.data[self.current_item])
            self.current_item += 1
            return byte_value

we will be able to reuse the iterator. In the &#039;generator&#039; object, I guess this happens automatically since the &#039;counter&#039; is local to the generator object.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for the article. Am just discovering the joy of python programming.</p>
<p>I am confused about why &#8220;iterators&#8230;are only good for one pass over the data.&#8221;. Surely that depends on how we define the &#8216;next&#8217; function. Suppose we define the &#8216;next&#8217; function in Listing 2 like this( i reset the counter just before StopIteration is raised ):</p>
<p>def next(self):<br />
        if (self.current_item == len(self.data)):<br />
            # reset counter<br />
            self.current_item = 0<br />
            raise StopIteration<br />
        else:<br />
            byte_value = ord(self.data[self.current_item])<br />
            self.current_item += 1<br />
            return byte_value</p>
<p>we will be able to reuse the iterator. In the &#8216;generator&#8217; object, I guess this happens automatically since the &#8216;counter&#8217; is local to the generator object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume Aubert</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-145517</link>
		<dc:creator>Guillaume Aubert</dc:creator>
		<pubDate>Tue, 19 May 2009 06:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-145517</guid>
		<description>Thanks for this article.

I was missing some bits regarding the generators and now it is crystal clear.

I will recommend it</description>
		<content:encoded><![CDATA[<p>Thanks for this article.</p>
<p>I was missing some bits regarding the generators and now it is crystal clear.</p>
<p>I will recommend it</p>
]]></content:encoded>
	</item>
</channel>
</rss>
