New submission from Marcel Partap:

Don't know whether it should be considered a documentation or behavioral issue, 
but os.samefile calls os.stat() on given files, following symlinks. Does this 
really "test whether two pathnames reference the same actual file"? I'd 
consider os.lstat() more suited for that.

This bites me every time I want to overwrite a symlink with its referenced file 
using ranger.

----------
messages: 298708
nosy: eMPee584
priority: normal
severity: normal
status: open
title: os.samefile / shutil._samefile: following symlinks
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30974>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to