[XML-SIG] Threads and minidom problems

Dieter Maurer dieter@handshake.de
Wed, 19 Feb 2003 20:55:58 +0100


Dario Correal wrote at 2003-2-18 14:04 -0500:
 > I am working on a project and I need to use minidom inside a thread code.
 > When a use minidom outside the thread everything is fine, but inside the
 > thread code nothing happens.
 > 
 > My code has this structure
 > 
 > 
 > if __name__ == '__main__':
 >     thread.start_new_thread ( foo, (file,))
 > 
 > def foo ( file ):
 >    doc = minidom.parse(file)
 >    #never reach this point

I do not know why it does not work for you.

I use "minidom" in a multi-threaded appliciation (Zope) without
problem.


Dieter