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

index b3179acac0d8ea8e1770409dd5d54878d0e403e0..e9ee51416bc00d5ffd819df144553c3be952c572 100644 (file)
@@ -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])