@@ -808,13 +808,16 @@ as internal buffering of data.
808808 Availability: Unix.
809809
810810
811- .. function :: fstat(fd)
811+ .. function :: fstat(fd, timestamp=None )
812812
813813 Return status for file descriptor *fd *, like :func: `~os.stat `.
814814
815815 Availability: Unix, Windows.
816816
817- .. function :: fstatat(dirfd, path, flags=0)
817+ .. versionchanged :: 3.3
818+ Added the *timestamp * argument.
819+
820+ .. function :: fstatat(dirfd, path, flags=0, timestamp="float")
818821
819822 Like :func: `stat ` but if *path * is relative, it is taken as relative to *dirfd *.
820823 *flags * is optional and may be 0 or :data: `AT_SYMLINK_NOFOLLOW `.
@@ -1696,7 +1699,7 @@ Files and Directories
16961699 .. versionadded :: 3.3
16971700
16981701
1699- .. function :: lstat(path)
1702+ .. function :: lstat(path, timestamp=None )
17001703
17011704 Perform the equivalent of an :c:func: `lstat ` system call on the given path.
17021705 Similar to :func: `~os.stat `, but does not follow symbolic links. On
@@ -1706,6 +1709,9 @@ Files and Directories
17061709 .. versionchanged :: 3.2
17071710 Added support for Windows 6.0 (Vista) symbolic links.
17081711
1712+ .. versionchanged :: 3.3
1713+ The *timestamp * argument was added.
1714+
17091715
17101716.. function :: lutimes(path[, times])
17111717
@@ -1969,7 +1975,7 @@ Files and Directories
19691975 .. versionadded :: 3.3
19701976
19711977
1972- .. function :: stat(path)
1978+ .. function :: stat(path, timestamp=None )
19731979
19741980 Perform the equivalent of a :c:func: `stat ` system call on the given path.
19751981 (This function follows symlinks; to stat a symlink use :func: `lstat `.)
@@ -1989,6 +1995,11 @@ Files and Directories
19891995 * :attr: `st_ctime ` - platform dependent; time of most recent metadata change on
19901996 Unix, or the time of creation on Windows)
19911997
1998+ :attr: `st_atime `, :attr: `st_mtime ` and :attr: `st_ctime ` are :class: `float `
1999+ by default, or :class: `int ` if :func: `os.stat_float_times ` is ``False ``. Set
2000+ the *timestamp * argument to get another :ref: `timestamp type
2001+ <timestamp-types>`.
2002+
19922003 On some Unix systems (such as Linux), the following attributes may also be
19932004 available:
19942005
@@ -2044,6 +2055,9 @@ Files and Directories
20442055
20452056 Availability: Unix, Windows.
20462057
2058+ .. versionchanged :: 3.3
2059+ Added the *timestamp * argument.
2060+
20472061
20482062.. function :: stat_float_times([newvalue])
20492063
@@ -2069,6 +2083,9 @@ Files and Directories
20692083 are processed, this application should turn the feature off until the library
20702084 has been corrected.
20712085
2086+ .. deprecated :: 3.3
2087+ Use *timestamp * argument of stat functions instead.
2088+
20722089
20732090.. function :: statvfs(path)
20742091
@@ -2859,27 +2876,39 @@ written in Python, such as a mail server's external command delivery program.
28592876 with :const: `P_NOWAIT ` return suitable process handles.
28602877
28612878
2862- .. function :: wait3([ options])
2879+ .. function :: wait3(options[, timestamp=float ])
28632880
28642881 Similar to :func: `waitpid `, except no process id argument is given and a
28652882 3-element tuple containing the child's process id, exit status indication, and
28662883 resource usage information is returned. Refer to :mod: `resource `.\
28672884 :func: `getrusage ` for details on resource usage information. The option
28682885 argument is the same as that provided to :func: `waitpid ` and :func: `wait4 `.
2886+ :attr: `ru_utime ` and :attr: `ru_stime ` attributes of the resource usage are
2887+ :class: `float ` by default, set the *timestamp * argument to get another
2888+ :ref: `timestamp type <timestamp-types >`.
28692889
28702890 Availability: Unix.
28712891
2892+ .. versionchanged :: 3.3
2893+ Added the *timestamp * argument.
2894+
28722895
2873- .. function :: wait4(pid, options)
2896+ .. function :: wait4(pid, options[, timestamp=float] )
28742897
28752898 Similar to :func: `waitpid `, except a 3-element tuple, containing the child's
28762899 process id, exit status indication, and resource usage information is returned.
28772900 Refer to :mod: `resource `.\ :func: `getrusage ` for details on resource usage
28782901 information. The arguments to :func: `wait4 ` are the same as those provided to
28792902 :func: `waitpid `.
2903+ :attr: `ru_utime ` and :attr: `ru_stime ` attributes of the resource usage are
2904+ :class: `float ` by default, set the *timestamp * argument to get another
2905+ :ref: `timestamp type <timestamp-types >`.
28802906
28812907 Availability: Unix.
28822908
2909+ .. versionchanged :: 3.3
2910+ Added the *timestamp * argument.
2911+
28832912
28842913.. data :: WNOHANG
28852914
0 commit comments