Sergio Rael added the comment:
Thank you for your reply RĂ©mi.
I agree with you that the reason can be that the pattern is too complex. I just
noticed that in Python 3.7 using the same pattern finish the searchall almost
instantaneously, but in 3.6 the CPU goes to 100% and it takes ages to
Sergio Rael added the comment:
Sorry, this is not a deadlock. Python puts the CPU to 100% of usage, but it
takes so long that a I didn't know if it can finish the task.
--
title: re.findall() deadlock on Python 3.6.10 -> re.findall() takes a long time
(100% cup usage) o
New submission from Sergio Rael :
I have found a deadlock using Python 3.6.10 that seems to have been solved on
3.7.x. probably related to capture groups. To reproduce the deadlock just do
something like this:
re.findall(
'\[et_pb_image(?:\w|=|"|\d|\.|
|_|\/)*src="(ht