[issue39682] pathlib.Path objects can be used as context managers

Isaac Muse report at bugs.python.org
Thu Mar 5 20:46:13 EST 2020


Isaac Muse <faceless.server1 at gmail.com> added the comment:

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.

----------
nosy: +Isaac Muse

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39682>
_______________________________________


More information about the Python-bugs-list mailing list