[Python-Dev] Other library code transformations

Raymond Hettinger python@rcn.com
Sat, 1 Jun 2002 15:50:50 -0400


From: "Walter Dörwald" <walter@livinglogic.de>
> dont' forget:
> import stat; os.stat("foo")[stat.ST_MTIME] --> os.stat("foo").st_mtime

Done!

BTW, it was surprising how many times the above has been coded as:
     os.stat("foo")[8]


Raymond Hettinger