Stefan Behnel added the comment:

I don't see adding one method to XMLParser as a design problem. In fact, it's 
even a good design on the technical side, because if ET ever gains an 
HTMLParser, then the implementation of this feature would be highly dependent 
on the underlying parser, i.e. it would be very different from the 
implementation in XMLParser. It might not even be supported at all. Moving the 
API into the parser gives us that choice quite naturally.

It also solves the naming issue. Why add another thing to the module that needs 
explanation (and even an explanation why it's there and how it's different from 
what else is there), when we can just add the feature to what's there and be 
done?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to