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

Antoine Pitrou solipsis at pitrou.net
Sat May 23 01:14:20 CEST 2009


Tarek Ziadé <ziade.tarek at ...> writes:
> 
> A very small change: what about making the path argument optional for
> os.listdir ? and use the current working directory if
> not provided.

Disagreed. If you want the current directory, you just have to use ".".

Regards

Antoine.





More information about the Python-ideas mailing list