Re: Another solution to How do I know when a thread quits?
Hi, Thanks for the code sample. I will try it out. I guess there is no reliable way to get away with just the threads module. Thanks, Prashanth Ellina -- http://mail.python.org/mailman/listinfo/python-list
How do I know when a thread quits?
Hi, I have used the low-level thread module to write a multi-threaded app. tid = thread.start_new_thread(process, ()) tid is an integer thread ident. the thread takes around 10 seconds to finish processing. Meanwhile the main thread finished execution and exits. This causes an error because the child thread tries to access something in the sys module which has already been GC'ed. I want a reliable way of knowing when the child thread finished execution so that I can make the main thread wait till then. Any ideas? TIA, Prashanth Ellina -- http://mail.python.org/mailman/listinfo/python-list
Re: Xml writing in Python and verifying using XSD
Diez B. Roggisch wrote: Use StringIO to capture the output of your writings, and use a xsd-validating parser (not sure which one, but google should help) to reread that. Or a temporary file. Thank you very much. I'll try that. -- http://mail.python.org/mailman/listinfo/python-list
Xml writing in Python and verifying using XSD
Hi, I need to write some data to an xml file. I have an XML Schema defined. I would like to use some mechanism of writing the data to the xml file and having exceptions thrown back to me when the data is invalid. I have looked at xml.dom and xml.dom.minidom but could not figure out what to do to include xml validation using the xsd while writing. Any ideas? Thanks in advance, Prashanth Ellina -- http://mail.python.org/mailman/listinfo/python-list