summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-02-08 22:03:19 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2012-02-08 22:03:19 (GMT)
commit4195b5caea0fe1446160e78d69420732ead7e78b (patch)
tree5c01264aed26942fcb932f9aab73856dd65af684 /Doc/library/os.rst
parent72476eae5fe4d7bc4d4c4e30471cd83a501707de (diff)
downloadcpython-4195b5caea0fe1446160e78d69420732ead7e78b.zip
cpython-4195b5caea0fe1446160e78d69420732ead7e78b.tar.gz
cpython-4195b5caea0fe1446160e78d69420732ead7e78b.tar.bz2
Backout f8409b3d6449: the PEP 410 is not accepted yet
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst41
1 files changed, 6 insertions, 35 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 3f10a32..06f1452 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -808,16 +808,13 @@ as internal buffering of data.
Availability: Unix.
-.. function:: fstat(fd, timestamp=None)
+.. function:: fstat(fd)
Return status for file descriptor *fd*, like :func:`~os.stat`.
Availability: Unix, Windows.
- .. versionchanged:: 3.3
- Added the *timestamp* argument.
-
-.. function:: fstatat(dirfd, path, flags=0, timestamp="float")
+.. function:: fstatat(dirfd, path, flags=0)
Like :func:`stat` but if *path* is relative, it is taken as relative to *dirfd*.
*flags* is optional and may be 0 or :data:`AT_SYMLINK_NOFOLLOW`.
@@ -1699,7 +1696,7 @@ Files and Directories
.. versionadded:: 3.3
-.. function:: lstat(path, timestamp=None)
+.. function:: lstat(path)
Perform the equivalent of an :c:func:`lstat` system call on the given path.
Similar to :func:`~os.stat`, but does not follow symbolic links. On
@@ -1709,9 +1706,6 @@ Files and Directories
.. versionchanged:: 3.2
Added support for Windows 6.0 (Vista) symbolic links.
- .. versionchanged:: 3.3
- The *timestamp* argument was added.
-
.. function:: lutimes(path[, times])
@@ -1975,7 +1969,7 @@ Files and Directories
.. versionadded:: 3.3
-.. function:: stat(path, timestamp=None)
+.. function:: stat(path)
Perform the equivalent of a :c:func:`stat` system call on the given path.
(This function follows symlinks; to stat a symlink use :func:`lstat`.)
@@ -1995,11 +1989,6 @@ Files and Directories
* :attr:`st_ctime` - platform dependent; time of most recent metadata change on
Unix, or the time of creation on Windows)
- :attr:`st_atime`, :attr:`st_mtime` and :attr:`st_ctime` are :class:`float`
- by default, or :class:`int` if :func:`os.stat_float_times` is ``False``. Set
- the *timestamp* argument to get another :ref:`timestamp type
- <timestamp-types>`.
-
On some Unix systems (such as Linux), the following attributes may also be
available:
@@ -2055,9 +2044,6 @@ Files and Directories
Availability: Unix, Windows.
- .. versionchanged:: 3.3
- Added the *timestamp* argument.
-
.. function:: stat_float_times([newvalue])
@@ -2083,9 +2069,6 @@ Files and Directories
are processed, this application should turn the feature off until the library
has been corrected.
- .. deprecated:: 3.3
- Use *timestamp* argument of stat functions instead.
-
.. function:: statvfs(path)
@@ -2876,39 +2859,27 @@ written in Python, such as a mail server's external command delivery program.
with :const:`P_NOWAIT` return suitable process handles.
-.. function:: wait3(options[, timestamp=float])
+.. function:: wait3([options])
Similar to :func:`waitpid`, except no process id argument is given and a
3-element tuple containing the child's process id, exit status indication, and
resource usage information is returned. Refer to :mod:`resource`.\
:func:`getrusage` for details on resource usage information. The option
argument is the same as that provided to :func:`waitpid` and :func:`wait4`.
- :attr:`ru_utime` and :attr:`ru_stime` attributes of the resource usage are
- :class:`float` by default, set the *timestamp* argument to get another
- :ref:`timestamp type <timestamp-types>`.
Availability: Unix.
- .. versionchanged:: 3.3
- Added the *timestamp* argument.
-
-.. function:: wait4(pid, options[, timestamp=float])
+.. function:: wait4(pid, options)
Similar to :func:`waitpid`, except a 3-element tuple, containing the child's
process id, exit status indication, and resource usage information is returned.
Refer to :mod:`resource`.\ :func:`getrusage` for details on resource usage
information. The arguments to :func:`wait4` are the same as those provided to
:func:`waitpid`.
- :attr:`ru_utime` and :attr:`ru_stime` attributes of the resource usage are
- :class:`float` by default, set the *timestamp* argument to get another
- :ref:`timestamp type <timestamp-types>`.
Availability: Unix.
- .. versionchanged:: 3.3
- Added the *timestamp* argument.
-
.. data:: WNOHANG