Re: Strange problem when using re module with threads

2007-11-01 Thread Gabriel Genellina
En Thu, 01 Nov 2007 17:01:36 -0300, Wei Lee Woon <[EMAIL PROTECTED]> escribió: > I've been getting a rather strange problem with the following > multithreaded > code (reduced to the minimum which still results in the problem): > > import threading > import re > > class hey(threading.Thread): >

Strange problem when using re module with threads

2007-11-01 Thread Wei Lee Woon
Dear all I've been getting a rather strange problem with the following multithreaded code (reduced to the minimum which still results in the problem): import threading import re class hey(threading.Thread): def run(self): print re.compile("\d+").search("hey95you").group(); thlist=[]