[Python-ideas] os.listdir with current working directory asdefault

Raymond Hettinger python at rcn.com
Sat May 23 02:08:15 CEST 2009


>> 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).


Raymond 




More information about the Python-ideas mailing list