Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

This is not a bug in Python, it is an invalid (broken) regular expression. 
There is nothing that the interpreter or the regular expression engine can do, 
because you are telling it to do something that makes no sense. What do you 
expect findall to find, if you ask it to find something nonsensical?

You say:

"repeat this pattern any number of times"

but there is no "this pattern" to be repeated. You are asking for something 
impossible. The only legitimate response is to report back that the regular 
expression is invalid and cannot be compiled, and fail immediately.

----------
nosy: +steven.daprano
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35146>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to