<?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 for learning python</title>
	<atom:link href="http://www.learningpython.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningpython.com</link>
	<description>one man's journey into python...</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:11:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>Comment on Creating a Game in Python Using PyGame &#8211; Part Two &#8211; Creating a level by Anonymous</title>
		<link>http://www.learningpython.com/2006/03/19/creating-a-game-in-python-using-pygame-part-two-creating-a-level/comment-page-1/#comment-238718</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 03 Feb 2012 23:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=20#comment-238718</guid>
		<description>&lt;strong&gt;…[Trackback]...&lt;/strong&gt;

Additional po...</description>
		<content:encoded><![CDATA[<p><strong>…[Trackback]&#8230;</strong></p>
<p>Additional po&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Iterators, Iterables, and Generators! Oh, my! by Sumudu Fernando</title>
		<link>http://www.learningpython.com/2009/02/23/iterators-iterables-and-generators-oh-my/comment-page-1/#comment-238717</link>
		<dc:creator>Sumudu Fernando</dc:creator>
		<pubDate>Fri, 27 Jan 2012 09:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=110#comment-238717</guid>
		<description>@spititan: Your example works, but the language does require iterators to implement __iter__.  What you have defined is almost an iterator, but technically isn&#039;t one.  The reason this requirement exists is that it makes it easy to write functions that can accept either an iterable or an iterator, the same way that built-ins such as sum can.

More precisely, if we write a loop like:

for x in iter(foo):
  pass

then foo can be either an iterable or an iterator.

One thing about the examples in the article is that they are slightly more complicated than necessary.  For example, I would write:

def forward(self):
  for c in self.data:
    yield ord(c)

and

def reverse(self):
  for c in reversed(self.data):
    yield ord(c)

(though maybe the reversed built-in did not exist when the article was written)</description>
		<content:encoded><![CDATA[<p>@spititan: Your example works, but the language does require iterators to implement __iter__.  What you have defined is almost an iterator, but technically isn&#8217;t one.  The reason this requirement exists is that it makes it easy to write functions that can accept either an iterable or an iterator, the same way that built-ins such as sum can.</p>
<p>More precisely, if we write a loop like:</p>
<p>for x in iter(foo):<br />
  pass</p>
<p>then foo can be either an iterable or an iterator.</p>
<p>One thing about the examples in the article is that they are slightly more complicated than necessary.  For example, I would write:</p>
<p>def forward(self):<br />
  for c in self.data:<br />
    yield ord(c)</p>
<p>and</p>
<p>def reverse(self):<br />
  for c in reversed(self.data):<br />
    yield ord(c)</p>
<p>(though maybe the reversed built-in did not exist when the article was written)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hacking Fixed, and Python on the Web by quality web programmer</title>
		<link>http://www.learningpython.com/2010/08/12/hacking-fixed-and-python-on-the-web/comment-page-1/#comment-238716</link>
		<dc:creator>quality web programmer</dc:creator>
		<pubDate>Thu, 26 Jan 2012 23:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=198#comment-238716</guid>
		<description>&lt;strong&gt;quality web programmer...&lt;/strong&gt;

[...]learning python &#187; Blog Archive &#187; Hacking Fixed, and Python on the Web[...]...</description>
		<content:encoded><![CDATA[<p><strong>quality web programmer&#8230;</strong></p>
<p>[...]learning python &raquo; Blog Archive &raquo; Hacking Fixed, and Python on the Web[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Elegant XML parsing using the ElementTree Module by Infinit's Notepad</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238715</link>
		<dc:creator>Infinit's Notepad</dc:creator>
		<pubDate>Sat, 21 Jan 2012 18:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238715</guid>
		<description>&lt;strong&gt;AI File Management....&lt;/strong&gt;

Goals. Generate file List.&#160; File list to contain the following: filename filepath filesize hash&#160; How will the list be stored? &#160;XML Paths to be scanned to be held in config file....</description>
		<content:encoded><![CDATA[<p><strong>AI File Management&#8230;.</strong></p>
<p>Goals. Generate file List.&nbsp; File list to contain the following: filename filepath filesize hash&nbsp; How will the list be stored? &nbsp;XML Paths to be scanned to be held in config file&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Writing my first python script by Gian</title>
		<link>http://www.learningpython.com/2006/01/10/writing-my-first-python-script/comment-page-1/#comment-238714</link>
		<dc:creator>Gian</dc:creator>
		<pubDate>Sat, 21 Jan 2012 05:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=8#comment-238714</guid>
		<description>Selsine,

Whenever I try to type $ python helloworld.py into my terminal it says &quot;$&quot; is not a recognised command. Any help would be greatly appreciated.
Gian</description>
		<content:encoded><![CDATA[<p>Selsine,</p>
<p>Whenever I try to type $ python helloworld.py into my terminal it says &#8220;$&#8221; is not a recognised command. Any help would be greatly appreciated.<br />
Gian</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Elegant XML parsing using the ElementTree Module by OKeymaker</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238710</link>
		<dc:creator>OKeymaker</dc:creator>
		<pubDate>Sat, 07 Jan 2012 17:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238710</guid>
		<description>Just a thing. How to print out the xml file that I have loaded from internet? Thats all I want and thats all I dont know...</description>
		<content:encoded><![CDATA[<p>Just a thing. How to print out the xml file that I have loaded from internet? Thats all I want and thats all I dont know&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a Game in Python Using PyGame &#8211; Part One by Purses For Cheap</title>
		<link>http://www.learningpython.com/2006/03/12/creating-a-game-in-python-using-pygame-part-one/comment-page-2/#comment-238708</link>
		<dc:creator>Purses For Cheap</dc:creator>
		<pubDate>Fri, 06 Jan 2012 08:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=19#comment-238708</guid>
		<description>&lt;strong&gt;Purses For Cheap...&lt;/strong&gt;

[...]learning python &#187; Blog Archive &#187; Creating a Game in Python Using PyGame &#8211; Part One[...]...</description>
		<content:encoded><![CDATA[<p><strong>Purses For Cheap&#8230;</strong></p>
<p>[...]learning python &raquo; Blog Archive &raquo; Creating a Game in Python Using PyGame &#8211; Part One[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Elegant XML parsing using the ElementTree Module by OKeymaker</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238702</link>
		<dc:creator>OKeymaker</dc:creator>
		<pubDate>Tue, 03 Jan 2012 19:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238702</guid>
		<description>Thank you! This guide explains XML and python in sucha way that almost anyone can understand. I bet you have saved several noobs lives.
Keep it up! :)</description>
		<content:encoded><![CDATA[<p>Thank you! This guide explains XML and python in sucha way that almost anyone can understand. I bet you have saved several noobs lives.<br />
Keep it up! <img src='http://www.learningpython.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Operator Overload! Learn how to change the behavior of equality operators. by Michael</title>
		<link>http://www.learningpython.com/2008/06/21/operator-overload-learn-how-to-change-the-behavior-of-equality-operators/comment-page-1/#comment-236248</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 16 Dec 2011 01:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=76#comment-236248</guid>
		<description>Errata in here be careful

_eq__ missing an underscore in one def

Thejaswi Raya is correct that is WRONG output</description>
		<content:encoded><![CDATA[<p>Errata in here be careful</p>
<p>_eq__ missing an underscore in one def</p>
<p>Thejaswi Raya is correct that is WRONG output</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Operator Overload! Learn how to change the behavior of equality operators. by Michael</title>
		<link>http://www.learningpython.com/2008/06/21/operator-overload-learn-how-to-change-the-behavior-of-equality-operators/comment-page-1/#comment-236229</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 15 Dec 2011 21:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=76#comment-236229</guid>
		<description>Very nice very well written! Gudio student number one and you 67213 lol....</description>
		<content:encoded><![CDATA[<p>Very nice very well written! Gudio student number one and you 67213 lol&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

