my Python lib is broken
Bruno Rezende
brunovianarezende at gmail.com
Sat Oct 6 08:02:57 EDT 2007
Hi,
I think I've broken my python installation (don't know how). All the
packages that are under 'lib' in python installation doesn't work the
way expected:
>>> import xml
>>> xml.dom
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'dom'
but, if I import * from xml, it starts to work again:
>>> from xml import *
>>> xml.dom
<module 'xml.dom' from 'C:\Python25\Lib\xml\dom\__init__.pyc'>
Does someone know why is this happening? (I can reinstall my python
2.5, but would like to know how the python lib got broken).
regards,
Bruno
More information about the Python-list
mailing list