Hi all, I have a series of class instances saved in an array. I need the instances to respond to a SIGKILL by writing to a file and sys.exit()-ing.
Am I right in codeing it as below ? ... does the sys.exit() kill the instance or the instance & the instance holding array definition above it ? Cheers Dave def signal_kill(self, signum, frame): """ On SIGKILL update journal_snap with a special #<START SECONDS>$86400 'no snapshot' string """ now_secs = time.strftime('%H') * 60 * 60 now_secs = time.strftime('%M') * 60 + now_secs now_secs = time.strftime('%S') + now_secs update_journal(self, time.strftime('%Y%m%d'), self.feed, now_secs, 86400) sys.exit() -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor