GH-79634: Speed up pathlib globbing by removing `joinpath()` call. by barneygale · Pull Request #114623 · python/cpython
Remove `self.joinpath('')` call that should have been removed in 6313cdd.
This makes `PathBase.glob('')` yield itself *without* adding a trailing
slash. It's hard to say whether this is more or less correct, but at least
everything else is faster, and there's no behaviour change in the public
classes where empty glob patterns are disallowed.
aisk pushed a commit to aisk/cpython that referenced this pull request
…ll. (python#114623) Remove `self.joinpath('')` call that should have been removed in 6313cdd. This makes `PathBase.glob('')` yield itself *without* adding a trailing slash. It's hard to say whether this is more or less correct, but at least everything else is faster, and there's no behaviour change in the public classes where empty glob patterns are disallowed.
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