Question about details of __import__
gagsl-py2 at yahoo.com.ar
Thu Mar 29 21:45:08 CEST 2007
En Thu, 29 Mar 2007 15:56:54 -0300, Mitko Haralanov <mitko at qlogic.com>
>> You may check if this is the case, looking at sys.modules
> I did look at sys.modules but I wasn't sure what to look for. There was
> a log module in the list but what else should I look for?
If you think that Python got confused and has two duplicate modules, try
to find them in sys.modules. Perhaps under the names 'log' and 'xxx.log'
Or, using print, try to see *when* your global variable is reset to None.
More information about the Python-list