<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Python dir() is my fav debugging thing ever</title>
	<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/</link>
	<description>leahculver.com</description>
	<pubDate>Tue, 06 Jan 2009 06:36:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Mark Peloquin</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1204</link>
		<dc:creator>Mark Peloquin</dc:creator>
		<pubDate>Thu, 21 Aug 2008 06:25:30 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1204</guid>
		<description>I see nobody's ever heard of pydoc.  Much like perldoc, you can look up documentation on any module, class, function, method, etc from the CLI.

$ pydoc os
$ pydoc os.path
$ pydoc os.path.join</description>
		<content:encoded><![CDATA[<p>I see nobody&#8217;s ever heard of pydoc.  Much like perldoc, you can look up documentation on any module, class, function, method, etc from the CLI.</p>
<p>$ pydoc os<br />
$ pydoc os.path<br />
$ pydoc os.path.join</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean F</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1203</link>
		<dc:creator>Sean F</dc:creator>
		<pubDate>Tue, 19 Aug 2008 23:08:08 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1203</guid>
		<description>vim omni-completion FTW :)</description>
		<content:encoded><![CDATA[<p>vim omni-completion FTW <img src='http://leahculver.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skytak</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1202</link>
		<dc:creator>Skytak</dc:creator>
		<pubDate>Tue, 19 Aug 2008 06:31:39 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1202</guid>
		<description>Meh, if you want it short in PHP, just do print_r(glob("module/*"));</description>
		<content:encoded><![CDATA[<p>Meh, if you want it short in PHP, just do print_r(glob(&#8221;module/*&#8221;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1201</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 18 Aug 2008 13:13:31 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1201</guid>
		<description>hi from 4chan!</description>
		<content:encoded><![CDATA[<p>hi from 4chan!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isaac</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1200</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Fri, 15 Aug 2008 21:49:16 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1200</guid>
		<description>&#62; I see why people like Python. In PHP to list 
&#62; directory contents you +just+ do:

&#62; $dir = dir(”module”);
&#62; while(($file = $dir-&#62;read()) !== false)
&#62; echo $file;
&#62; $dir-&#62;close();

dir() in python, according to the post, doesn't do that at all. It lists the contents of an *object*, which means whoever named dir() in python failed.

The equivalent in php is as easy as in python.

print_r($object)</description>
		<content:encoded><![CDATA[<p>&gt; I see why people like Python. In PHP to list<br />
&gt; directory contents you +just+ do:</p>
<p>&gt; $dir = dir(”module”);<br />
&gt; while(($file = $dir-&gt;read()) !== false)<br />
&gt; echo $file;<br />
&gt; $dir-&gt;close();</p>
<p>dir() in python, according to the post, doesn&#8217;t do that at all. It lists the contents of an *object*, which means whoever named dir() in python failed.</p>
<p>The equivalent in php is as easy as in python.</p>
<p>print_r($object)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1192</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 12 Aug 2008 22:58:06 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1192</guid>
		<description>Of course by posting this as an image it's not indexable by Google...</description>
		<content:encoded><![CDATA[<p>Of course by posting this as an image it&#8217;s not indexable by Google&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler Menezes</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1191</link>
		<dc:creator>Tyler Menezes</dc:creator>
		<pubDate>Tue, 12 Aug 2008 00:27:02 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1191</guid>
		<description>I see why people like Python. In PHP to list directory contents you +just+ do:

$dir = dir("module");
while(($file = $dir-&#62;read()) !== false)
echo $file;
$dir-&#62;close();</description>
		<content:encoded><![CDATA[<p>I see why people like Python. In PHP to list directory contents you +just+ do:</p>
<p>$dir = dir(&#8221;module&#8221;);<br />
while(($file = $dir-&gt;read()) !== false)<br />
echo $file;<br />
$dir-&gt;close();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wiz</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1190</link>
		<dc:creator>wiz</dc:creator>
		<pubDate>Mon, 11 Aug 2008 07:32:32 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1190</guid>
		<description>import pdb; pdb.set_trace() -- very povurful toy.</description>
		<content:encoded><![CDATA[<p>import pdb; pdb.set_trace() &#8212; very povurful toy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Walton</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1189</link>
		<dc:creator>Ben Walton</dc:creator>
		<pubDate>Mon, 11 Aug 2008 05:43:55 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1189</guid>
		<description>That was supposed to be
obj.(tab)(tab)</description>
		<content:encoded><![CDATA[<p>That was supposed to be<br />
obj.(tab)(tab)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Walton</title>
		<link>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1188</link>
		<dc:creator>Ben Walton</dc:creator>
		<pubDate>Mon, 11 Aug 2008 05:42:09 +0000</pubDate>
		<guid>http://leahculver.com/2008/08/10/python-dir-is-the-best-debugging-tool-ever/#comment-1188</guid>
		<description>I've just always used...
obj.
in the console.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just always used&#8230;<br />
obj.<br />
in the console.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
