[Python-checkins] bpo-32878: Adds documentation for st_ino on Windows (GH-5764) (GH-7190)

Steve Dower webhook-mailer at python.org
Mon May 28 22:27:16 EDT 2018


https://github.com/python/cpython/commit/325320d5f5a4480a6f4f92dcf86b9dbb7eb5c791
commit: 325320d5f5a4480a6f4f92dcf86b9dbb7eb5c791
branch: 3.6
author: Steve Dower <steve.dower at microsoft.com>
committer: GitHub <noreply at github.com>
date: 2018-05-28T19:27:11-07:00
summary:

bpo-32878: Adds documentation for st_ino on Windows (GH-5764) (GH-7190)

files:
M Doc/library/os.rst

diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index b3179acac0d8..e9ee51416bc0 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2263,7 +2263,13 @@ features:
 
    .. attribute:: st_ino
 
-      Inode number.
+      Platform dependent, but if non-zero, uniquely identifies the
+      file for a given value of ``st_dev``. Typically:
+
+      * the inode number on Unix,
+      * the `file index
+        <https://msdn.microsoft.com/en-us/library/aa363788>`_ on
+        Windows
 
    .. attribute:: st_dev
 
@@ -2416,6 +2422,10 @@ features:
    .. versionadded:: 3.5
       Added the :attr:`st_file_attributes` member on Windows.
 
+   .. versionchanged:: 3.5
+      Windows now returns the file index as :attr:`st_ino` when
+      available.
+
 
 .. function:: stat_float_times([newvalue])
 



More information about the Python-checkins mailing list