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

"Martin v. Löwis" martin at v.loewis.de
Mon Nov 20 23:45:05 CET 2006

Fredrik Lundh schrieb:
> haven't used the reporthook, but my reading of the documentation would have led me
> to believe that I should do count*blocksize to determine how much data I've gotten this
> far.  changing the blocksize without setting the count to zero would break such code.

Right - such code would break. I believe the code would also break when
the count is set to zero; I can't see how this would help.

The question is whether this breakage is a strong enough reason not to
change the code.


More information about the Python-Dev mailing list