Paul Ganssle <p.gans...@gmail.com> added the comment:

> I don't spend enough time dealing with symlinks to have strong opinions 
> there, but given we have ways to resolve symlinks but not to get back to the 
> original name (and I *have* had to deal with issues where I've needed to find 
> the original name from the target :roll-eyes:) I'd say don't resolve anything 
> eagerly.

You mean treating symlinks to directories like files? I suppose that's a 
possibility, but I do think it will end up being a source of bugs around 
symlinking.

Admittedly, it *is* apparently what rglob('*') does (just tested it - 
apparently it won't follow symlinks to directories), though I think it might be 
a better interface to try to break cycles rather than not follow symlinks 
(particularly since `iterdir` currently treats symlinks to directories as 
directories).

----------

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

Reply via email to