Message172948
> The attached patch adds support for '\\' escaping to fnmatch, and consequently to glob.
This is a backward incompatible change. For example glob.glob(r'C:\Program Files\*') will be broken.
As flacs says a way to escape metacharacters in glob/fnmatch already exists. If someone want to match literal name "Ajax_[version2].txt" it should use pattern "Ajax_[[]version2].txt". Documentation should explicitly mentions such way.
It will be good also to add new fnmatch.escape() function. |
|
Date |
User |
Action |
Args |
2012-10-15 07:38:07 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, eric.smith, kveretennicov, ezio.melotti, eric.araujo, l0nwlf, george.hu, docs@python, maker, Aquinas, Tilka, a1abhishek |
2012-10-15 07:38:07 | serhiy.storchaka | set | messageid: <1350286687.3.0.795051528094.issue8402@psf.upfronthosting.co.za> |
2012-10-15 07:38:07 | serhiy.storchaka | link | issue8402 messages |
2012-10-15 07:38:07 | serhiy.storchaka | create | |
|