[Python-Dev] Other library code transformations

Walter Dörwald walter@livinglogic.de
Mon, 03 Jun 2002 17:54:11 +0200

Fredrik Lundh wrote:
> walter wrote:
>>import stat; os.stat("foo")[stat.ST_MTIME] --> os.stat("foo").st_mtime
> or, nicer:
>     os.path.getmtime("foo")

Is there an os.path function available for all the os.stat entries?

Which version should we use?

Should we change this at all? (stat.py won't go away,
only string.py and types.py will.)

    Walter Dörwald