Antoine Pitrou <pit...@free.fr> added the comment: > If socket.write() returns zero byte written, I'll have to wait until I > get another chance to send my buffer. But in the meantime, some more > data might get appended to the buffer, and the string returned by > getvalue() will be different from the first call (and thus, I can't > really cache it). > > I could find some tricks (like using multiple buffers), but it would > be ugly.
Right. I think we should somehow support your use case, but I'm not sure whether it should be the default. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8240> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com