Author lemburg
Recipients ajaksu2, amaury.forgeotdarc, harobed, lemburg
Date 2010-03-31.10:28:19
SpamBayes Score 5.34883e-06
Marked as misclassified No
Message-id <>
In-reply-to <>
Amaury Forgeot d'Arc wrote:
> Amaury Forgeot d'Arc <> added the comment:
> Buffering applies when writing, not when reading a file.
> There is indeed a problem in after a readline(), read() will return the content of the internal buffer, and not more.
> The "size" parameter is a hint, and should not be used to decide whether the character buffer is enough to satisfy the read() request.
> Patch is attached, with test.


The patch looks good except the if-line should read:

if chars >= 0 and len(self.charbuffer) >= chars:

Marc-Andre Lemburg


::: Try our new mxODBC.Connect Python Database Interface for free ! :::: Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
Date User Action Args
2010-03-31 10:28:23lemburgsetrecipients: + lemburg, amaury.forgeotdarc, ajaksu2, harobed
2010-03-31 10:28:20lemburglinkissue8260 messages
2010-03-31 10:28:19lemburgcreate