A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-November/069982.html below:

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

[Python-Dev] Passing actual read size to urllib reporthook [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.

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4