[Python-Dev] [Python-checkins] r86817 - python/branches/py3k-stat-on-windows/Lib/test/test_shutil.py (original) (raw)
Brian Curtin brian.curtin at gmail.com
Fri Nov 26 21:31:49 CET 2010
- Previous message: [Python-Dev] [Python-checkins] r86817 - python/branches/py3k-stat-on-windows/Lib/test/test_shutil.py
- Next message: [Python-Dev] [Python-checkins] r86745 - in python/branches/py3k: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Nov 26, 2010 at 14:18, Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp
wrote:
On 2010/11/27 5:02, Brian Curtin wrote:
We briefly chatted about this on the os.link feature issue, but I never found a way around it.
How about implementing os.path.samefile in Modules/posixmodule.c like this? http://bugs.python.org/file19262/py3kfixkillpythonforshortpath.patch # I hope this works.
That's almost identical to what the current os.path.sameopenfile is.
Lib/ntpath.py opens both files, then compares them via _getfileinformation. That function is implemented to take in a file descriptor, call GetFileInformationByHandle with it, then returns a tuple of dwVolumeSerialNumber, nFileIndexHigh, and nFileIndexLow. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20101126/737054c2/attachment.html>
- Previous message: [Python-Dev] [Python-checkins] r86817 - python/branches/py3k-stat-on-windows/Lib/test/test_shutil.py
- Next message: [Python-Dev] [Python-checkins] r86745 - in python/branches/py3k: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]