How do I undo an import??

Mikael Olofsson mikael at isy.liu.se
Fri Apr 14 21:41:48 CEST 2000


On 14-Apr-00 Tom wrote:
 >  After importing NetCfg I type:
 >  
 > >>> del sys.modules['NetCfg']
 >  
 >  Python responds as follows:
 >  
 >  Traceback (innermost last):
 >    File "<stdin>", line 1, in ?
 >  NameError: sys
 >  
 >  Any ideas??

Have you imported sys? I don't think so.

/Mikael

-----------------------------------------------------------------------
E-Mail:  Mikael Olofsson <mikael at isy.liu.se>
WWW:     http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date:    14-Apr-00
Time:    21:41:15

This message was sent by XF-Mail.
-----------------------------------------------------------------------



More information about the Python-list mailing list