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

Another solution would be to base it on `strict` parameter:

- strict=True, subpath exists => resolve `..`
- strict=True, subpath doesn't exist => throw OSError
- strict=False => never resolve `..`

This would avoid extra `lstat()` calls but would be a much bigger change in 
terms of behavior.

----------

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

Reply via email to