[Python-checkins] python/dist/src/Doc/lib libos.tex,1.147,1.148

facundobatista at users.sourceforge.net facundobatista at users.sourceforge.net
Fri Jan 7 03:50:25 CET 2005


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3037

Modified Files:
	libos.tex 
Log Message:
Added example to os.stat()

Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- libos.tex	15 Dec 2004 23:44:18 -0000	1.147
+++ libos.tex	7 Jan 2005 02:50:22 -0000	1.148
@@ -931,7 +931,17 @@
 \member{st_mtime} (time of most recent content modification),
 \member{st_ctime}
 (platform dependent; time of most recent metadata change on \UNIX, or
-the time of creation on Windows).
+the time of creation on Windows):
+
+\begin{verbatim}
+>>> import os
+>>> statinfo = os.stat('somefile.txt')
+>>> statinfo
+(33188, 422511L, 769L, 1, 1032, 100, 926L, 1105022698,1105022732, 1105022732)
+>>> statinfo.st_size
+926L
+>>>
+\end{verbatim}
 
 \versionchanged [If \function{stat_float_times} returns true, the time
 values are floats, measuring seconds. Fractions of a second may be



More information about the Python-checkins mailing list