[issue7566] Add ntpath.sameopenfile support for Windows

2010-09-06 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Added in r84561. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7566

[issue7566] Add ntpath.sameopenfile support for Windows

2010-07-23 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Here's a patch implementing ntpath.sameopenfile with _getfileinformation in Modules/posixmodule.c. Martin's suggestion is the best way of doing this, which was the basis for _getfileinformation implementation. It returns a tuple of the three

[issue7566] Add ntpath.sameopenfile support for Windows

2010-06-27 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- assignee: - brian.curtin nosy: +brian.curtin stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7566 ___

[issue7566] Add ntpath.sameopenfile support for Windows

2009-12-29 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7566 ___ ___ Python-bugs-list

[issue7566] Add ntpath.sameopenfile support for Windows

2009-12-23 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: That's an excellent idea. I had searched briefly for a more correct solution, but did not find one at the time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7566

[issue7566] Add ntpath.sameopenfile support for Windows

2009-12-23 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7566 ___ ___ Python-bugs-list mailing

[issue7566] Add ntpath.sameopenfile support for Windows

2009-12-22 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: In issue1578269, asvetlov suggests adding an implementation of os.sameopenfile to ntpath.py: --- Jason, as I see you implemented os.samefile (actually ntpath.samefile) but os.sameopenfile is still not implemented. Looks like it's easy to

[issue7566] Add ntpath.sameopenfile support for Windows

2009-12-22 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As NTFS supports hard links, I think GetFileInformationByHandle should be used to compare handles (looking at dwVolumeSerialNumber, nFileIndexHigh,nFileIndexLow) -- nosy: +loewis ___ Python