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

Gabriel Rossetti mailing_lists at evotex.ch
Thu Apr 24 00:25:35 MDT 2008


Jean-Paul Calderone wrote:
> 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.
>>>
>>> Jean-Paul
>> Ok, I must be way off, because as I see it bytesSent < len(data) is 
>> never true.
>
> 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. :)
>
> Jean-Paul
Ok, I'll do that as soon as possible :-)

Gabriel




More information about the Twisted-Python mailing list