[issue29249] Pathlib glob ** bug

2021-06-04 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue29249] Pathlib glob ** bug

2021-06-04 Thread Barney Gale
Change by Barney Gale : -- nosy: +barneygale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29249] Pathlib glob ** bug

2021-06-03 Thread wim glenn
Change by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue29249] Pathlib glob ** bug

2021-02-10 Thread Julien Palard
Julien Palard added the comment: I'm +1 on adding ** to match. My first bet would be to add it to match, not adding a new method, nor a flag, as it should not break compatibility: It would only break iif someone have a `**` in a match AND does *not* expect it to be recursive (as it would co

[issue29249] Pathlib glob ** bug

2020-12-04 Thread Miroslav Šedivý
Miroslav Šedivý added the comment: Today when porting some random project from os.path to pathlib I encountered a homemade filename matching method that I wanted to port to pathlib.Path.match. Unfortunately >>> pathlib.Path('x').match('**/x') False although if I have a file called `x` in the

[issue29249] Pathlib glob ** bug

2020-01-31 Thread Isaac Muse
Isaac Muse added the comment: I think the idea of adding a globmatch function is a decent idea. That is what I did in a library I wrote to get more out of glob than what Python offered out of the box: https://facelessuser.github.io/wcmatch/pathlib/#purepathglobmatch. Specifically the diffe

[issue29249] Pathlib glob ** bug

2020-01-31 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue29249] Pathlib glob ** bug

2018-09-19 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: issue34731 was a duplicate of this pytest was affected, as we port more bits to pathlib we hit this as well bruno kindly implemented a local workaround in https://github.com/pytest-dev/pytest/pull/3980/files#diff-63fc5ed688925b327a5af20405bf4b09R19

[issue29249] Pathlib glob ** bug

2017-12-08 Thread Dustin Spicuzza
Dustin Spicuzza added the comment: Because of backwards compatibility (despite a statement saying it's not guaranteed for pathlib), I think the best approach would be to create a 'globmatch' function for PurePath instead of modifying the match function, and document that the match function do

[issue29249] Pathlib glob ** bug

2017-12-08 Thread Dustin Spicuzza
Dustin Spicuzza added the comment: I just ran into this also. It seems like a very strange omission that match and glob don't support the same patterns (and I'm surprised that they don't share more code). -- nosy: +virtuald ___ Python tracker

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Jon Walsh
Jon Walsh added the comment: Seems a bit strange to not have glob() and match() working the same though. Is there any reason for that? -- ___ Python tracker ___

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ** is supported not just as a prefix. Path('./Lib').glob('**/*.py') emits the same paths as Path('.').glob('Lib/**/*.py'). But ** is supported only in glob(), not in match(). The support of ** in match() is not documented. Would be worth to document explicit

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Christian Heimes
Christian Heimes added the comment: The ticket is not about glob but about pathlib. Pathlib supports ** directory globbing, but it's only documented as prefix globbing, https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob -- nosy: +christian.heimes

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Andrew Dunai
Andrew Dunai added the comment: Isn't this intended? According to https://docs.python.org/2/library/glob.html and wiki, typical UNIX glob pattern does not have the reqursive matching operator (`**`). -- nosy: +Andrew Dunai ___ Python tracker

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Jon Walsh
New submission from Jon Walsh: >>> from pathlib import Path >>> Path("a/b/c/d/e.txt").match('a/*/**/*') False -- components: Library (Lib) messages: 285297 nosy: Jon Walsh priority: normal severity: normal status: open title: Pathlib glob ** bug type: behavior versions: Python 3.5 _