Message363470
Brace expansion does not currently exist in Python's glob. You'd have to use a third party module to expand the braces and then run glob on each returned pattern, or use a third party module that implements a glob that does it for you.
Shameless plug:
Brace expansion: https://github.com/facelessuser/bracex
Glob that does it for you (when the feature is enabled): https://github.com/facelessuser/wcmatch
Now whether Python should integrate such behavior by default is another question. |
|
Date |
User |
Action |
Args |
2020-03-06 01:47:18 | Isaac Muse | set | recipients:
+ Isaac Muse, serhiy.storchaka, xtreak, Je GeVa |
2020-03-06 01:47:18 | Isaac Muse | set | messageid: <1583459238.55.0.146877482928.issue39856@roundup.psfhosted.org> |
2020-03-06 01:47:18 | Isaac Muse | link | issue39856 messages |
2020-03-06 01:47:18 | Isaac Muse | create | |
|