[Python-Dev] Other library code transformations

Fredrik Lundh fredrik@pythonware.com
Mon, 3 Jun 2002 11:08:52 +0200


walter wrote:

> import stat; os.stat("foo")[stat.ST_MTIME] --> os.stat("foo").st_mtime

or, nicer:

    os.path.getmtime("foo")

</F>