[snip] > >> This will be the most robust as it will > >> also work for cases where the program is terminated without the use of > >> the keyboard (i.e. kill -9, task manager, computer reboot, etc.) but > > That unfortunately is not so. kill -9 does *not* send a signal or raise an > exception. It just kills the process dead, instantly and without warning.
Does a plain kill send a signal or do you need to use an option like SIGHUP? [snip] > > >> it might also slow the program down. You could also try writing the > >> item log to a local file using pickle or csv. > > Better is to use the logging module rather than to reinvent the wheel. > I was under the impression it was not logging in the traditional sense of the word, but more like storable "status" so that reprocessing can occur. I could be wrong though. Ramit This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor