[issue43529] pathlib.Path.glob causes OSError encountering symlinks to long filenames

2021-03-19 Thread Eric Frederich
Eric Frederich added the comment: I'm happy to create a pull request but would need some help. Looking at that routine it has changed over time and I cannot simply create a single patch against 3.6 and have it merge cleanly into newer versions. I'd need help explaining the process

[issue43529] pathlib.Path.glob causes OSError encountering symlinks to long filenames

2021-03-17 Thread Eric Frederich
Eric Frederich added the comment: I verified against all versions available for me to select. For 3.10 I used the 3.10-rc Docker image. -- versions: +Python 3.10, Python 3.6, Python 3.7 ___ Python tracker

[issue43529] pathlib.Path.glob causes OSError encountering symlinks to long filenames

2021-03-17 Thread Eric Frederich
Change by Eric Frederich : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43529] pathlib.Path.glob causes OSError encountering symlinks to long filenames

2021-03-17 Thread Eric Frederich
New submission from Eric Frederich : Calling pathlib.Path.glob("**/*) on a directory containing a symlink which resolves to a very long filename causes OSError. This is completely avoidable since symlinks are not followed anyway. In pathlib.py, the _RecursiveWildcardSelector has a method