[New-bugs-announce] [issue7566] Add ntpath.sameopenfile support for Windows

Jason R. Coombs report at bugs.python.org
Wed Dec 23 01:56:47 CET 2009


New submission from Jason R. Coombs <jaraco at 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 do: while GetFinalPathNameByHandle already 
accept file handle you can use CRT function _get_osfhandle(fd) to 
convert file descriptors (arguments for sameopenfile) to file handles 
and pass it to GetFinalPathNameByHandle.

For me samefile and sameopenfile has very close semantic and I like to 
see both if it's possible.
---

This seems entirely reasonable, but I would like to track and tackle
this as a separate issue.

----------
components: Windows
messages: 96822
nosy: jaraco
severity: normal
status: open
title: Add ntpath.sameopenfile support for Windows
type: feature request
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7566>
_______________________________________


More information about the New-bugs-announce mailing list