Stefan Behnel added the comment:

> Well, I would rather like to understand yours.

My point is that the IncrementalParser uses a TreeBuilder that builds an XML 
tree in the back. So I'm wondering why you are saying that it doesn't build a 
tree.


> Whatever IncrementalParser uses internally needn't impact what API it
> exposes to the user.

And in fact, we don't even need an IncrementalParser, because XMLParser already 
*has* an incremental parsing interface. All that's missing is the bit that 
collects and exposes the events. And my point is that we shouldn't duplicate 
the existing *data entry* interface for that, especially not under different 
names for identical functionality, but only add an interface to access those 
events as *output*, i.e. to add the bit of the API that's actually missing.

As an analogon, what would you say if I asked for adding a new, separate 
Mapping interface to Python that uses the method name "set_value()" instead of 
"__setitem__()" because I want it to read data from the hard drive and not from 
memory?

----------

_______________________________________
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