import a module in a destructor of a class
Chris Rebert
clp2 at rebertia.com
Mon Aug 23 08:33:58 EDT 2010
On Mon, Aug 23, 2010 at 5:00 AM, Navid Parvini <parvini_navid at yahoo.com> wrote:
> 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.
And the exact error message and exception traceback were...?
Cheers,
Chris
--
Vagueness makes questions harder to answer.
http://blog.rebertia.com
More information about the Python-list
mailing list