[Python-ideas] Regex timeouts

2022-02-15 Thread Ben Rudiak-Gould
On Tue, Feb 15, 2022 at 6:13 PM Chris Angelico wrote: > Once upon a time, a "regular expression" was a regular grammar. That is no > longer the case. > I use "regex" for the weird backtracking minilanguages and deliberately never call them "regular expressions". (I was under the impression that

[Python-ideas] Regex timeouts

2022-02-14 Thread J.B. Langston
Hello, I had opened this bug because I had a bad regex in my code that was causing python to hang in the regex evaluation: https://bugs.python.org/issue46627. I have fixed the problem with that specific regex, but more generally I think it would be good to have a timeout option that could be confi