[Python-ideas] os.listdir with current working directory asdefault
Guido van Rossum
guido at python.org
Sun May 24 23:13:53 CEST 2009
2009/5/22 Raymond Hettinger <python at rcn.com>:
>>> os.listdir(os.curdir) <-> os.listdir()
>
> +1
>
> Lots of functions have useful defaults and this one would be familiar to
> everyone who programs (what does "dir" do without arguments on Windows or an
> "ls" do without arguments for Linux).
+1
Can't see how it would really cause any confusion.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-ideas
mailing list