- 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 | eumiro |
|---|---|
| Recipients | Andrew Dunai, Isaac Muse, Jon Walsh, Ronny.Pfannschmidt, christian.heimes, docs@python, eumiro, pitrou, serhiy.storchaka, virtuald |
| Date | 2020-12-04.21:54:32 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1607118873.1.0.657268493328.issue29249@roundup.psfhosted.org> |
| In-reply-to |
| Content |
|---|
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 current directory, both
>>> pathlib.Path('.').glob('**/x')
and zsh's
$ ls **/x
can find it. It would be really nice to have analogous .glob and .match methods. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2020-12-04 21:54:33 | eumiro | set | recipients: + eumiro, pitrou, christian.heimes, docs@python, Ronny.Pfannschmidt, serhiy.storchaka, virtuald, Jon Walsh, Andrew Dunai, Isaac Muse |
| 2020-12-04 21:54:33 | eumiro | set | messageid: <1607118873.1.0.657268493328.issue29249@roundup.psfhosted.org> |
| 2020-12-04 21:54:33 | eumiro | link | issue29249 messages |
| 2020-12-04 21:54:32 | eumiro | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
