> I'm lost here. When I put this line
> 
> from xml.sax.handler import ContentHandler
> 
> in a .py file and run it, I get the ImportError. When I execute it in
> shell, there is no error.
> 
> Why?

Because you have another module called xml in your path that is found
first and has no sax package in it.

Regards,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to