[Python-Dev] Fwd: class os.DirEntry is confusing,

Nick Coghlan ncoghlan at gmail.com
Sat Mar 21 13:14:45 CET 2015


On 21 March 2015 at 10:15, 罗勇刚(Yonggang Luo) <luoyonggang at gmail.com> wrote:
> ---------- Forwarded message ----------
> From: 罗勇刚(Yonggang Luo) <luoyonggang at gmail.com>
> Date: 2015-03-21 2:24 GMT+08:00
> Subject: class os.DirEntry is confusing,
> To: Python <python-ideas at python.org>
>
>
> Should be replaced with os.FsEntry or os.ScanEntry

The name comes from the underlying C/POSIX concept (dirent in this
case), which is fairly common for the low level APIs in the os module.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list