bpo-32878: Adds documentation for st_ino on Windows (GH-5764) (#7189) · python/cpython@78e14f8 (original) (raw)

Original file line number Diff line number Diff line change
@@ -2378,7 +2378,13 @@ features:
2378 2378
2379 2379 .. attribute:: st_ino
2380 2380
2381 - Inode number.
2381 + Platform dependent, but if non-zero, uniquely identifies the
2382 + file for a given value of ``st_dev``. Typically:
2383 +
2384 + * the inode number on Unix,
2385 + * the `file index
2386 +https://msdn.microsoft.com/en-us/library/aa363788`_ on
2387 + Windows
2382 2388
2383 2389 .. attribute:: st_dev
2384 2390
@@ -2537,6 +2543,10 @@ features:
2537 2543 .. versionadded:: 3.5
2538 2544 Added the :attr:`st_file_attributes` member on Windows.
2539 2545
2546 + .. versionchanged:: 3.5
2547 + Windows now returns the file index as :attr:`st_ino` when
2548 + available.
2549 +
2540 2550 .. versionadded:: 3.7
2541 2551 Added the :attr:`st_fstype` member to Solaris/derivatives.
2542 2552