Eli Bendersky <eli...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14007>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to