summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-10-24 09:02:00 (GMT)
committerGitHub <noreply@github.com>2017-10-24 09:02:00 (GMT)
commit01b5aab7bfb11ee5476ef52d24495598cbe7c99a (patch)
treed21899c9bf7a80014b9e14bd27c0cf88ed6da290 /Doc/library/os.rst
parent87d332dcdbffe8ff60d99f74b1ad241c0967b055 (diff)
downloadcpython-01b5aab7bfb11ee5476ef52d24495598cbe7c99a.zip
cpython-01b5aab7bfb11ee5476ef52d24495598cbe7c99a.tar.gz
cpython-01b5aab7bfb11ee5476ef52d24495598cbe7c99a.tar.bz2
bpo-31827: Remove os.stat_float_times() (GH-4061)
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst29
1 files changed, 0 insertions, 29 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 86add0c..95c8113 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2335,8 +2335,6 @@ features:
* the time of creation on Windows, expressed in nanoseconds as an
integer.
- See also the :func:`stat_float_times` function.
-
.. note::
The exact meaning and resolution of the :attr:`st_atime`,
@@ -2431,33 +2429,6 @@ features:
Added the :attr:`st_file_attributes` member on Windows.
-.. function:: stat_float_times([newvalue])
-
- Determine whether :class:`stat_result` represents time stamps as float objects.
- If *newvalue* is ``True``, future calls to :func:`~os.stat` return floats, if it is
- ``False``, future calls return ints. If *newvalue* is omitted, return the
- current setting.
-
- For compatibility with older Python versions, accessing :class:`stat_result` as
- a tuple always returns integers.
-
- Python now returns float values by default. Applications which do not work
- correctly with floating point time stamps can use this function to restore the
- old behaviour.
-
- The resolution of the timestamps (that is the smallest possible fraction)
- depends on the system. Some systems only support second resolution; on these
- systems, the fraction will always be zero.
-
- It is recommended that this setting is only changed at program startup time in
- the *__main__* module; libraries should never change this setting. If an
- application uses a library that works incorrectly if floating point time stamps
- are processed, this application should turn the feature off until the library
- has been corrected.
-
- .. deprecated:: 3.3
-
-
.. function:: statvfs(path)
Perform a :c:func:`statvfs` system call on the given path. The return value is