[issue5985] Implement os.path.samefile and os.path.sameopenfile on Windows

Erik Carstensen report at bugs.python.org
Wed Oct 14 15:51:46 CEST 2009


Erik Carstensen <sandberg at virtutech.com> added the comment:

> Once I considered this approach, but problems was that
> nFileIndexLow/High can change every time file handle is opened, so
> it's not unique.

Ah, I see, then your approach makes sense.

There's another part of your patch that I don't understand:

+except ImportError: # not running on Windows - mock up something sensible
+    from posixpath import samefile # XXX

In what situations will this happen, and are we guaranteed in those
cases that samefile will be found in posixpath?

----------

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


More information about the Python-bugs-list mailing list