threads and minidom problems

Dario Correal dario.correal at scriptasoftware.com
Mon Feb 17 07:01:14 EST 2003


Hi

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 and the shell got blocked.

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

Thanks in advance,

Dario Correal
Scripta Software Ltda.
PBX: (57 1)256-3442
Cel: 343-8192
www.scriptasoftware.com






More information about the Python-list mailing list