- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | Isaac Muse |
|---|---|
| Recipients | Andrew Dunai, Isaac Muse, Jon Walsh, Ronny.Pfannschmidt, christian.heimes, docs@python, pitrou, serhiy.storchaka, virtuald |
| Date | 2020-02-01.01:39:48 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1580521188.51.0.879108686902.issue29249@roundup.psfhosted.org> |
| In-reply-to |
| Content |
|---|
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 differences are globmatch is just a pure match of a path, it doesn't do the implied `**` at the beginning of a pattern like match does. While it doesn't enable `**` by default, such features are controlled by flags >>> pathlib.Path("a/b/c/d/e.txt").match('a/*/**/*', flags=pathlib.GLOBSTAR) True This isn't to promote my library, but more to say, as a user, I found such functionality worth adding. I think it would be generally nice to have such functionality in some form in Python by default. Maybe something called `globmatch` that offers that could be worthwhile. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2020-02-01 01:39:48 | Isaac Muse | set | recipients: + Isaac Muse, pitrou, christian.heimes, docs@python, Ronny.Pfannschmidt, serhiy.storchaka, virtuald, Jon Walsh, Andrew Dunai |
| 2020-02-01 01:39:48 | Isaac Muse | set | messageid: <1580521188.51.0.879108686902.issue29249@roundup.psfhosted.org> |
| 2020-02-01 01:39:48 | Isaac Muse | link | issue29249 messages |
| 2020-02-01 01:39:48 | Isaac Muse | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
