problem - re.compile() blocks threads

Aum spam at al-queda.org
Sat Feb 1 07:20:36 EST 2003


Hi,

I've noticed that Python threads are prone to blocking if they call
re.compile().

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?

Cheers
A





More information about the Python-list mailing list