import a module in a destructor of a class
parvini_navid at yahoo.com
Mon Aug 23 14:00:02 CEST 2010
I have a python module named "book.py" I want to import it in a destructor of a class.
def __init__( self, ... ):
. . .
def __del__( self ):
but I got error. Would you please help me? Can I import a module in a destructor?
Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list