[XML-SIG] Re: python SAX API

Martin v. Loewis martin@v.loewis.de
Fri, 16 Nov 2001 19:05:21 +0100


> Regarding 2.: It's possible to hasattr(contenthandler, 'startElement') 
> and we should use that; i.e. if the handler does not fit to our feature 
> setting, adapt to the handler.

The problem is: If everybody inherits from
xml.sax.handler.ContentHandler, this hasattr test will always
succeed. The implementation will be empty if inherited.

Regards,
Martin