Message183676
I've attached fnmatch_implementation.py, which is a simple pure-Python implementation of the fnmatch function.
It's not as susceptible to catastrophic backtracking as the current re-based one. For example:
fnmatch('a' * 50, '*a*' * 50)
completes quickly. |
|
Date |
User |
Action |
Args |
2013-03-07 16:28:04 | mrabarnett | set | recipients:
+ mrabarnett, terry.reedy, eric.smith, kveretennicov, ezio.melotti, eric.araujo, l0nwlf, george.hu, docs@python, maker, Aquinas, Tilka, serhiy.storchaka, a1abhishek |
2013-03-07 16:28:03 | mrabarnett | set | messageid: <1362673683.99.0.978398232974.issue8402@psf.upfronthosting.co.za> |
2013-03-07 16:28:03 | mrabarnett | link | issue8402 messages |
2013-03-07 16:28:03 | mrabarnett | create | |
|