<?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/"
				  >
<channel>
<title>NEVERFEAR (Post Comments)</title>
<link>http://neverfear.org</link>
<description><![CDATA[NEVERFEAR.org weblog feed for post comments]]></description>
<image><title>NEVERFEAR (Post Comments)</title>
<link>http://neverfear.org</link>
<url>http://neverfear.org/favicon.ico</url>
</image>
<language>en-uk</language>
<pubDate>Wed, 08 Feb 2012 12:50:12 +0000</pubDate>
<item>
<title>Comment on A neater way to print something every x iterations in Python</title>
<link>http://neverfear.org/blog/view/49/A_neater_way_to_print_something_every_x_iterations_in_Python/comments#comment_54</link>
<pubDate>Sun, 16 Aug 2009 02:57:16 +0000</pubDate>
<description><![CDATA[<pre class="text" style="font-family:monospace;">list = range(1,100)
result = filter(lambda y: sys.stdout.write(&quot;progress info\n&quot;), filter(lambda x: x % 10 == 0, list))</pre>

<p>TADA!</p>
]]></description>
<author>skel</author>
<guid isPermaLink="true" >http://neverfear.org/blog/view/49/A_neater_way_to_print_something_every_x_iterations_in_Python/comments#comment_54</guid>
</item>
<item>
<title>Comment on A neater way to print something every x iterations in Python</title>
<link>http://neverfear.org/blog/view/49/A_neater_way_to_print_something_every_x_iterations_in_Python/comments#comment_53</link>
<pubDate>Thu, 13 Aug 2009 02:15:38 +0000</pubDate>
<description><![CDATA[<p>Err, true - that was a typo.. Fixed..</p>
]]></description>
<author>ben@neverfear.org</author>
<guid isPermaLink="true" >http://neverfear.org/blog/view/49/A_neater_way_to_print_something_every_x_iterations_in_Python/comments#comment_53</guid>
</item>
<item>
<title>Comment on A neater way to print something every x iterations in Python</title>
<link>http://neverfear.org/blog/view/49/A_neater_way_to_print_something_every_x_iterations_in_Python/comments#comment_51</link>
<pubDate>Tue, 11 Aug 2009 14:18:28 +0000</pubDate>
<description><![CDATA[<p>That's neat but two things should be that enumerate isn't automatically applied in Python 2.3 to 2.5 and it doesn't appear to be in 2.6 either.. what version of Python is that code for? You need to explicitly call enumerate() in the versions I tested.</p>

<pre class="python" style="font-family:monospace;"><span class="kw1">for</span> i, x <span class="kw1">in</span> <span class="kw2">enumerate</span><span class="br0">&#40;</span>lots_of_stuff<span class="br0">&#41;</span>:
    process<span class="br0">&#40;</span>x<span class="br0">&#41;</span>
    <span class="kw1">if</span> i <span class="sy0">%</span> <span class="nu0">20</span> == <span class="nu0">0</span>:
        <span class="kw1">print</span> <span class="st0">&quot;Some progress info&quot;</span></pre>
]]></description>
<author>doug@neverfear.org</author>
<guid isPermaLink="true" >http://neverfear.org/blog/view/49/A_neater_way_to_print_something_every_x_iterations_in_Python/comments#comment_51</guid>
</item>
</channel>
</rss>
