[Python-Dev] Passing actual read size to urllib reporthook

"Martin v. Löwis" martin at v.loewis.de
Tue Nov 21 19:30:24 CET 2006

Armin Rigo schrieb:
> Hi Martin,
> On Tue, Nov 21, 2006 at 06:56:20AM +0100, "Martin v. L?wis" wrote:
>> Right: socket._fileobject will invoke recv as many times as
>> necessary to read the requested amount of data. I was somehow
>> assuming that it maps read() to read(2), which, in turn, would
>> directly map to recv(2), which could return less data.
>> So it's a semantic change only for the last block.
> That means that it would be rather pointless to make the change, right?

Right; I rejected the patch. Thanks for all your input.


More information about the Python-Dev mailing list