]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update docstrings to use te attribute names of the new structures returned
authorFred Drake <fdrake@acm.org>
Tue, 12 Mar 2002 21:38:31 +0000 (21:38 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 12 Mar 2002 21:38:31 +0000 (21:38 +0000)
by stat and time functions.
This closes SF patch #523271.

Modules/posixmodule.c
Modules/timemodule.c

index 31b0dde98a670af0c28379b24910d0d875c27aef..46df93726fb8ae87d9394a780ea7d6a277336032 100644 (file)
@@ -1300,7 +1300,8 @@ posix_rmdir(PyObject *self, PyObject *args)
 
 
 static char posix_stat__doc__[] =
-"stat(path) -> (mode,ino,dev,nlink,uid,gid,size,atime,mtime,ctime)\n\
+"stat(path) -> (st_mode, st_ino, st_dev, st_nlink, st_uid, st_gid,\n\
+                st_size, st_atime, st_mtime, st_ctime)\n\
 Perform a stat system call on the given path.";
 
 static PyObject *
@@ -3368,7 +3369,8 @@ posix_wait(PyObject *self, PyObject *args)
 
 
 static char posix_lstat__doc__[] =
-"lstat(path) -> (mode,ino,dev,nlink,uid,gid,size,atime,mtime,ctime)\n\
+"lstat(path) -> (st_mode, st_ino, st_dev, st_nlink, st_uid, st_gid,\n\
+                 st_size, st_atime, st_mtime, st_ctime)\n\
 Like stat(path), but do not follow symbolic links.";
 
 static PyObject *
index a5d81fe91ef8973758b482e07d026fce19336237..e4d5dd81d024da08d90b183414eda4da97c13f4c 100644 (file)
@@ -285,7 +285,8 @@ time_gmtime(PyObject *self, PyObject *args)
 }
 
 static char gmtime_doc[] =
-"gmtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)\n\
+"gmtime([seconds]) -> (tm_year, tm_mon, tm_day, tm_hour, tm_min,\n\
+                       tm_sec, tm_wday, tm_yday, tm_isdst)\n\
 \n\
 Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.\n\
 GMT).  When 'seconds' is not passed in, convert the current time instead.";
@@ -302,7 +303,7 @@ time_localtime(PyObject *self, PyObject *args)
 }
 
 static char localtime_doc[] =
-"localtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)\n\
+"localtime([seconds]) -> (tm_year,tm_mon,tm_day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)\n\
 \n\
 Convert seconds since the Epoch to a time tuple expressing local time.\n\
 When 'seconds' is not passed in, convert the current time instead.";