In article 
<[EMAIL PROTECTED]>,
 Marcin201 <[EMAIL PROTECTED]> wrote:

> I have a class which uses a temporary directory for storing data.  I
> would like that directory to be removed when the class is no longer
> used.  I have tried removing the temporary directory from the class
> destructor, however, it was never called.

The short answer is that destruction in Python is non-deterministic (a rude 
shock if you're used to C++).  What you probably want is the new "with" 
statement (http://docs.python.org/ref/with.html).
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to