summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2012-12-26 13:03:03 (GMT)
committerBrian Curtin <brian@python.org>2012-12-26 13:03:03 (GMT)
commit490b32a3976d84eaf1d6ca8cdcb00eac0ce5055b (patch)
treef110633e5ef37e78cecac8701874bb7a02c250bf /Doc/library/os.path.rst
parent2bf61abe02d578a9812cb13d4d71e14f481c4cb5 (diff)
downloadcpython-490b32a3976d84eaf1d6ca8cdcb00eac0ce5055b.zip
cpython-490b32a3976d84eaf1d6ca8cdcb00eac0ce5055b.tar.gz
cpython-490b32a3976d84eaf1d6ca8cdcb00eac0ce5055b.tar.bz2
Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.
By setting the st_dev attribute, we can then remove some Windows-specific code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py so all platforms share the same implementation.
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r--Doc/library/os.path.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index d9b7138..d1725bd 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -244,15 +244,14 @@ applications should use string objects to access all files.
On Unix, this is determined by the device number and i-node number and raises an
exception if a :func:`os.stat` call on either pathname fails.
- On Windows, two files are the same if they resolve to the same final path
- name using the Windows API call GetFinalPathNameByHandle. This function
- raises an exception if handles cannot be obtained to either file.
-
Availability: Unix, Windows.
.. versionchanged:: 3.2
Added Windows support.
+ .. versionchanged:: 3.4
+ Windows now uses the same implementation as all other platforms.
+
.. function:: sameopenfile(fp1, fp2)
@@ -271,7 +270,10 @@ applications should use string objects to access all files.
:func:`stat`. This function implements the underlying comparison used by
:func:`samefile` and :func:`sameopenfile`.
- Availability: Unix.
+ Availability: Unix, Windows.
+
+ .. versionchanged:: 3.4
+ Added Windows support.
.. function:: split(path)