there's no DefaultHandler

A.M. Kuchling akuchlin at ute.mems-exchange.org
Tue Jul 16 14:32:28 EDT 2002


In article <ah1htr$lvh$1 at newsreader.mailgate.org>,
	a64bs4$1oo$1 at newsreader.mailgate.org wrote:
> [eugene at eugene python]$ python firstxml.py
> Traceback (most recent call last):
>   File "firstxml.py", line 6, in ?
>     class FindIssue(xml.sax.DefaultHandler):
> AttributeError: 'module' object has no attribute 'DefaultHandler'

This example comes from the XML HOWTO, and assumes you also have the
PyXML package installed.  You can download a copy from pyxml.sf.net.

However, if this is your first attempt at writing Python code, the
Python tutorial at http://www.python.org/doc/tut/ will be a much
gentler introduction to the language than trying to do XML processing
right off the bat.

--amk                                                             (www.amk.ca)
Humour is a tricky thing. Some people can't even get the spelling right.
    -- Richard Brodie, 30 Oct 2000



More information about the Python-list mailing list