GH-109187: Improve symlink loop handling in pathlib.Path.resolve()#109192
GH-109187: Improve symlink loop handling in pathlib.Path.resolve()#109192barneygale merged 2 commits intopython:mainfrom
pathlib.Path.resolve()#109192Conversation
…ve()` Treat symlink loops like other errors: in strict mode, raise `OSError`, and in non-strict mode, do not raise any exception.
|
Hey @zooba, please could you review this if you have the time/inclination? It's a sort-of follow-up to #25264, which you reviewed a couple years ago. No worries if not! Thank you. Previously we decided to raise Now we're looking at adding a new |
|
|
…ve()` (pythonGH-109192) Treat symlink loops like other errors: in strict mode, raise `OSError`, and in non-strict mode, do not raise any exception.
…ve()` (pythonGH-109192) Treat symlink loops like other errors: in strict mode, raise `OSError`, and in non-strict mode, do not raise any exception.
Treat symlink loops like other errors: in strict mode, raise
OSError, and in non-strict mode, do not raise an exception.📚 Documentation preview 📚: https://cpython-previews--109192.org.readthedocs.build/