]> granicus.if.org Git - python/commit
Implement #7566 - os.path.sameopenfile for Windows.
authorBrian Curtin <brian.curtin@gmail.com>
Mon, 6 Sep 2010 17:07:27 +0000 (17:07 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Mon, 6 Sep 2010 17:07:27 +0000 (17:07 +0000)
commit6285774f06f44f04353801cc79fd2a5e67f884ec
treefd38bd421fce735854ca6de4bbe0774ba0769fe8
parent5c997b8d90e8e531bf844f5618a203f0a12ac9dc
Implement #7566 - os.path.sameopenfile for Windows.

This uses the GetFileInformationByHandle function to return a tuple of values
to identify a file, then ntpath.sameopenfile compares file tuples, which
is exposed as os.path.sameopenfile.
Doc/library/os.path.rst
Lib/ntpath.py
Lib/test/test_ntpath.py
Misc/NEWS
Modules/posixmodule.c