import a module in a destructor of a class
Navid Parvini
parvini_navid at yahoo.com
Mon Aug 23 08:00:02 EDT 2010
Dear All,
I have a python module named "book.py" I want to import it in a destructor of a class.
class Excel:
def __init__( self, ... ):
. . .
def __del__( self ):
import book
but I got error. Would you please help me? Can I import a module in a destructor?
Thank you in advance.
Regards,
Navid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100823/0bdb7f78/attachment.html>
More information about the Python-list
mailing list