April 23, 2008
3:59 p.m.
On Wed, 23 Apr 2008 17:30:17 +0200, Gabriel Rossetti <mailing_lists@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