PEP ? os.listdir enhancement

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

On 6/22/05, Riccardo Galli <riccardo_cut1 at> 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