[XML-SIG] Parser not resetting

Fredrik Lundh fredrik at pythonware.com
Sat Jul 19 20:54:36 CEST 2008


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>



More information about the XML-SIG mailing list