[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

Eli Bendersky report at bugs.python.org
Tue Feb 14 05:51:47 CET 2012


Eli Bendersky <eliben at gmail.com> added the comment:

The problem is deeper. _elementtree does not expose XMLParser and TreeBuilder as types at all, just as factory functions.

XMLParser: not sure if it was meant to be subclassed. If not, it should at least be documented. In any case, the XMLParser in _elementtree does not use the doctype() method on its target.

TreeBuilder: was definitely meant to be subclassed (it's documented explicitly), so it must be exposed as a type, not as a factory function.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14007>
_______________________________________


More information about the Python-bugs-list mailing list