+1<br><br><div class="gmail_quote">On Sat, May 23, 2009 at 11:28 AM, R. David Murray <span dir="ltr"><<a href="mailto:rdmurray@bitdance.com">rdmurray@bitdance.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">"Raymond Hettinger" <<a href="mailto:python@rcn.com">python@rcn.com</a>> wrote:<br>
> >> os.listdir(os.curdir) <-> os.listdir()<br>
><br>
> +1<br>
><br>
> Lots of functions have useful defaults and this one would be familiar to everyone who programs (what does "dir" do without arguments<br>
> on Windows or an "ls" do without arguments for Linux).<br>
<br>
</div>+1.  I remember being surprised that os.listdir() did not work<br>
(I was expecting the requested behavior).  If this were not<br>
parallel to the default behavior of ls and dir I'd be -1, but<br>
as it is I think it is less surprising for it to work.<br>
<font color="#888888"><br>
--David<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--------------------------------------------------<br>Tennessee Leeuwenburg<br><a href="http://myownhat.blogspot.com/">http://myownhat.blogspot.com/</a><br>"Don't believe everything you think"<br>