Re: Close as Many Files/External resourcs as possible in the face of exceptions

2011-11-21 Thread Terry Reedy
On 11/21/2011 7:09 AM, Mel Wilson wrote: GZ wrote: Here is my situation. A parent object owns a list of files (or other objects with a close() method). The close() method can sometimes fail and raise an exception. When the parent object's close() method is called, it needs to close down as many

Re: Close as Many Files/External resourcs as possible in the face of exceptions

2011-11-21 Thread Mel Wilson
GZ wrote: > Here is my situation. A parent object owns a list of files (or other > objects with a close() method). The close() method can sometimes fail > and raise an exception. When the parent object's close() method is > called, it needs to close down as many files it owns as possible, even >

Re: Close as Many Files/External resourcs as possible in the face of exceptions

2011-11-21 Thread Vincent Vande Vyvre
Le 21/11/11 06:46, GZ a écrit : Hi, Here is my situation. A parent object owns a list of files (or other objects with a close() method). The close() method can sometimes fail and raise an exception. When the parent object's close() method is called, it needs to close down as