]> granicus.if.org Git - python/commitdiff
bpo-32878: Adds documentation for st_ino on Windows (GH-5764)
authorSteve Dower <steve.dower@microsoft.com>
Tue, 29 May 2018 00:24:36 +0000 (17:24 -0700)
committerGitHub <noreply@github.com>
Tue, 29 May 2018 00:24:36 +0000 (17:24 -0700)
Doc/library/os.rst

index 4b4e93106692b9c3d5c58fed936e5df9082f1b09..d5bc612f451c7385269059b8003851224e490e74 100644 (file)
@@ -2378,7 +2378,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
 
@@ -2537,6 +2543,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.
+
    .. versionadded:: 3.7
       Added the :attr:`st_fstype` member to Solaris/derivatives.