[Twisted-Python] Could this be an error in pcp.py?

Jean-Paul Calderone exarkun at divmod.com
Wed Apr 23 11:59:54 EDT 2008

On Wed, 23 Apr 2008 17:30:17 +0200, Gabriel Rossetti <mailing_lists at evotex.ch> wrote:
> [snip]
>>If bytesSent == len(data), then the else case is taken and the buffer is
>>empty.  I'm not really sure what you're getting at.
>Ok, I must be way off, because as I see it bytesSent < len(data) is never 

Ah.  Yes, you're right.  I'm not sure why this code is written this way.  It's
pretty old and I haven't used it much myself.  I don't know if this means there
is a bug or not.  If you think there is one, the next step is to write a unit
test. :)


More information about the Twisted-Python mailing list