Andrei Kulakov <andrei....@gmail.com> added the comment:

The issue is that _PreciseSelector follows the symlink when it checks if a path 
exists before yielding it as a result.

I've put up a PR with a fix; I've also added a *follow_symlinks* arg to 
`exists()` method because it seems more logical to be able to test if a path 
exists via the same method rather than having to also remember and to check for 
it being a symlink.

I will add docs and news a bit later today or tomorrow.

----------
assignee:  -> andrei.avk
nosy: +kj

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

Reply via email to