bpo-36035: pathlib.Path().rglob() breaks with broken symlinks by eamanu · Pull Request #11964 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be best if you also added a test for this, presumably in test_pathlib.
| @@ -35,7 +35,7 @@ | |||
| # | |||
|
|
|||
| # EBADF - guard agains macOS `stat` throwing EBADF | |||
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhpas adding a comment here about ELOOP ould be helpful as this name is not transparent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters