[Python-ideas] PEP: Extended stat_result (First Draft)

Oleg Broytman phd at phdru.name
Mon May 6 18:55:03 CEST 2013


Hi!

On Mon, May 06, 2013 at 10:30:04AM +0200, Pieter Nagel <pieter at nagel.co.za> wrote:
> Title: Extended stat_result
> Author: Pieter Nagel <pieter at nagel.co.za>

   Good job!

> is_character_device()
> is_block_device()
> is_symbolic_link()

   Long names. Make them (and other if possible) shorter. is_chardev(),
is_blockdev() or even is_blkdev(), is_symlink(). After all, it is called
is_dir(), not is_directory(), right? ;-)

> file_mode()
>     This shall return ``stat.filemode(

   Shouldn't it be called filemode()? I see you are fond of underscores
but Python style guides discourage using them AFAIK.

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.



More information about the Python-ideas mailing list