[Python-ideas] os.listdir default to '.'

Michael Foord fuzzyman at gmail.com
Thu Jan 12 16:02:52 CET 2012

Hello all,

I frequently use Python from the interactive interpreter as a shell. It is
a frequent, but mild, irritant that I have to type os.listdir('.') instead
of just os.listdir().

How about making '.' a default argument for os.listdir ?

All the best,




May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120112/45be498b/attachment.html>

More information about the Python-ideas mailing list