problem - re.compile() blocks threads

Aum spam at
Sat Feb 1 13:20:36 CET 2003


I've noticed that Python threads are prone to blocking if they call

Is this a bug or a feature?

For a workaround, I globalised all the re.compile() instances I needed,
and just referenced them from within the thread. No more lockups now :)

However, I'm not a big fan of global variables. Is there a better workaround?


More information about the Python-list mailing list