[Python-ideas] Updated PEP 428 (pathlib)

MRAB python at mrabarnett.plus.com
Wed Mar 6 21:20:29 CET 2013

On 2013-03-06 19:21, Charles-François Natali wrote:
>>> Now, the question is whether we want to try to mitigate this or
>>> not...
>> It's not something I've ever used, but it doesn't look that
>> difficult compared to regex if all it has is "*", "?", "[...]" and
>> "[!...]".
> What's not difficult? Avoiding DoS with arbitrary glob patterns?
> If yes, please share your idea :-)
I wrote an alternative regex implementation (it's on PyPI). It's a lot
more resistant to catastrophic backtracking.

What's need for fnmatch is a lot simpler than that! :-)

More information about the Python-ideas mailing list