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



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to