Python and XML

Andrew Clover and-google at doxdesk.com
Sun Aug 3 18:14:15 EDT 2003


"Matthieu M." <mat at frheaven.com> wrote:

> from xml.dom import pulldom

>    File "xml.py", line 1, in ?

You have a file called 'xml.py' somewhere on the pythonpath, which is
replacing the normal 'xml' package.

However if it doesn't interfere when you try to import xml from the
interpreter, likelihood is it's an xml.py file in the same directory
as the program's script file - check there.

For some reason, the current working directory is included in Python's
default module search path, before all other directories. If anyone can
explain why this is the Right Thing I'd be interested to know.

-- 
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/




More information about the Python-list mailing list