<?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: Min-Heap in Python</title>
	<atom:link href="http://joernhees.de/blog/2010/07/19/min-heap-in-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://joernhees.de/blog/2010/07/19/min-heap-in-python/</link>
	<description>Science, code and links.</description>
	<lastBuildDate>Wed, 01 Feb 2012 14:54:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: joern</title>
		<link>http://joernhees.de/blog/2010/07/19/min-heap-in-python/#comment-1180</link>
		<dc:creator>joern</dc:creator>
		<pubDate>Mon, 11 Jul 2011 06:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://joernhees.de/blog/?p=81#comment-1180</guid>
		<description>seriously? NO!

If you do it like that, you just iterate over the list backend of the heap which will not be sorted correctly!</description>
		<content:encoded><![CDATA[<p>seriously? NO!</p>
<p>If you do it like that, you just iterate over the list backend of the heap which will not be sorted correctly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joern</title>
		<link>http://joernhees.de/blog/2010/07/19/min-heap-in-python/#comment-1179</link>
		<dc:creator>joern</dc:creator>
		<pubDate>Mon, 11 Jul 2011 06:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://joernhees.de/blog/?p=81#comment-1179</guid>
		<description>Which python version do you use and how did you input my code sample? There seems to be a white-space problem with empty lines in Wordpress and the code highlighting plugin I use, so maybe the whole problem is that your class definition wasn&#039;t complete? (Should&#039;ve given a syntax error though.)

I tested the code on py2.6 and 2.7, don&#039;t know about 3.x yet.</description>
		<content:encoded><![CDATA[<p>Which python version do you use and how did you input my code sample? There seems to be a white-space problem with empty lines in WordPress and the code highlighting plugin I use, so maybe the whole problem is that your class definition wasn&#8217;t complete? (Should&#8217;ve given a syntax error though.)</p>
<p>I tested the code on py2.6 and 2.7, don&#8217;t know about 3.x yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Miller</title>
		<link>http://joernhees.de/blog/2010/07/19/min-heap-in-python/#comment-1178</link>
		<dc:creator>John Miller</dc:creator>
		<pubDate>Mon, 11 Jul 2011 02:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://joernhees.de/blog/?p=81#comment-1178</guid>
		<description>Found your problem:

    def __iter__(self):
        &quot;&quot;&quot; Get all elements ordered by asc. priority. &quot;&quot;&quot;
        return iter(self._heap)</description>
		<content:encoded><![CDATA[<p>Found your problem:</p>
<p>    def __iter__(self):<br />
        &#8220;&#8221;" Get all elements ordered by asc. priority. &#8220;&#8221;"<br />
        return iter(self._heap)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Miller</title>
		<link>http://joernhees.de/blog/2010/07/19/min-heap-in-python/#comment-1177</link>
		<dc:creator>John Miller</dc:creator>
		<pubDate>Mon, 11 Jul 2011 02:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://joernhees.de/blog/?p=81#comment-1177</guid>
		<description>When I try running your code, this is the error I get:

&quot;TypeError: iter() returned non-iterator of type &#039;Heap&#039;&quot;

How can I correct this?</description>
		<content:encoded><![CDATA[<p>When I try running your code, this is the error I get:</p>
<p>&#8220;TypeError: iter() returned non-iterator of type &#8216;Heap&#8217;&#8221;</p>
<p>How can I correct this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

