PEP ? os.listdir enhancement

Konstantin Veretennicov kveretennicov at gmail.com
Thu Jun 23 11:56:08 CEST 2005


On 6/22/05, Riccardo Galli <riccardo_cut1 at cut2_sideralis.net> wrote:

> I propose to add an 'abs' keyword which would make os.listdir return the
> absolute path of files instead of a relative path.

What about os.listdir(dir='relative/path', abs=True)? Should listdir
call abspath on results? Should we add another keyword rel? Would it
complicate listdir unnecessarily?

- kv



More information about the Python-list mailing list