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.

classification
Title: poss. patch for fnmatch.py to add {.htm,html} style globbing
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: duplicate
Dependencies: Superseder: zsh-style subpattern matching for fnmatch/glob
View: 4573
Assigned To: Nosy List: georg.brandl, mark, thatch
Priority: normal Keywords:

Created on 2008-04-17 11:56 by mark, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fnmatch.py mark, 2008-04-17 11:56 Replacement for fnmatch.py with new translate() function and updated docs
Messages (3)
msg65584 - (view) Author: Mark Summerfield (mark) * Date: 2008-04-17 11:56
At the moment fnmatch.py (and therefore glob.py) support:
* . [chars] [!chars]

The attached version of fnmatch.py extends this to:
* . [chars] [!chars] {one,two,...}

There are 2 changes from the original fnmatch.py file:
(1) The documentation for the fnmatch() function has been updated to
reflect the new functionality
(2) The translate() function has been completely replaced.
I ran test_fnmatch.py and test_glob.py and both ran without errors.
msg92225 - (view) Author: Tim Hatch (thatch) * Date: 2009-09-03 22:25
More discussion has gone on in issue #4573 on this topic.  Can this bug
be marked as a duplicate?
msg92234 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-09-04 06:52
Yes, I think that's fine.
History
Date User Action Args
2022-04-11 14:56:33adminsetgithub: 46901
2009-09-04 06:52:18georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg92234

superseder: zsh-style subpattern matching for fnmatch/glob
resolution: duplicate
2009-09-03 22:25:52thatchsetnosy: + thatch
messages: + msg92225
2008-04-17 11:56:41markcreate