Re: Parser not resetting

Fredrik Lundh <[email protected]> Sat, 19 Jul 2008 20:54:36 +0200
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
Josh English wrote:
> The code uses an xml.sax.handler.ContentHandler subclass,  that stores
> the results in "output" and the filter function is :
> 
> def list_submissions(argstring,filters={}):
>     sh=SubHandler(argstring,filters)
>     parser = make_parser()
>     parser.setContentHandler(sh)
>     parser.parse(open(submissionpath))
> 
>     return sh.output
> 
> running this function over and over causes the problem

what's filters here?  are you aware of this issue:

     http://effbot.org/zone/default-values.htm

?

</F>

_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig