On Fri, 2003-11-07 at 15:29, Yuan, Cain wrote: > Hi Kev, > It's very cool to do a ping() before using those connections. One > more question here: where are you planning to add the code for close > those connections when mailman is ready to quit (sometimes we need to > shutdown mailman manually and of cause we did not want to leave those > connection in the system)? Python has a __init() but seems no __exit > functions( correct me if I am wrong).
Mailman's MailList instance currently doesn't have a close() method. The best you can do is structure things around the pseudo-transactions of .Load() and .Save(). Not ideal, clearly. You could experiment with adding an __del__ to MailList. -Barry _______________________________________________ Mailman-Developers mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-developers