Question about details of __import__
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Thu Mar 29 15:45:08 EDT 2007
En Thu, 29 Mar 2007 15:56:54 -0300, Mitko Haralanov <mitko at qlogic.com>
escribió:
>> 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.
--
Gabriel Genellina
More information about the Python-list
mailing list