<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 9:21 AM, Antoine Pitrou <span dir="ltr"><<a href="mailto:solipsis@pitrou.net" target="_blank">solipsis@pitrou.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le Mon, 26 Aug 2013 09:14:38 -0700,<br>
Eli Bendersky <<a href="mailto:eliben@gmail.com">eliben@gmail.com</a>> a écrit :<br>
<div class="im">><br>
> Antoine, you opted out of the tracker issue but I feel it's fair to<br>
> let you know that after a lot of discussion with Nick and Stefan (*),<br>
> we've settled on renaming the input methods to feed & close, and the<br>
> output method to read_events. We are also considering a different<br>
> name for the class.<br>
<br>
</div>Fair enough.<br>
<div class="im"><br>
> As for the class name, IncrementalParser is ambiguous because it's not<br>
> immediately clear which side is incremental. Input or output?<br>
<br>
</div>Both are :-)<br>
<br></blockquote><div><br></div><div>Yes, exactly :-) "Incremental", though, seems to support the conjecture that it's the input. Which is true, but, since XMLParser is also "incremental" in this sense, slightly confusing.<br>

<br>As a more anecdotal piece of evidence: when the issue was reopened, I myself at first got confused by exactly this point because I forgot all about this in the months that passed since the commit. And I recalled that when I initially reviewed your patch, I got confused too :-) That would suggest one of two things: (1) The name is indeed confusing or (2) I'm stupid. The fact that Nick also got confused when trying a cursory understanding of the documentation cams me down w.r.t. (2).<br>

<br></div><div>Back to the discussion, my new favorite is NonblockingParser. Because its input side is exactly similar to XMLParser, the "Nonblocking" in the name points to the difference in output, which is correct.<br>

<br>As the popular quote says, "There are only two hard problems in Computer Science: cache invalidation and naming things."<br><br>Eli<br><br></div></div></div></div>