Issue 1097229: Example needed in os.stat() (original) (raw)
As the repr() of an os.stat() object is exactly equal to a tuple, it's not clear at first in the documentation how to use its attributes:
import os statinfo = os.stat('somefile.txt') statinfo (33188, 422511L, 769L, 1, 1032, 100, 926L, 1105022698, 1105022732, 1105022732) statinfo.st_size 926L
So I propose to put this example in the stat docs.