Bugs item #1490929, was opened at 2006-05-18 10:22 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1490929&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Feature Request Status: Open Resolution: None Priority: 5 Submitted By: Sidnei da Silva (dreamcatcher) Assigned to: Nobody/Anonymous (nobody) Summary: urllib.retrieve's reporthook called with non-helpful value Initial Comment: Seems like the 'reporthook', when provided to the 'retrieve' function of urllib will be called with (blocknumber, blocksize, totalsize). However, the call to read() might return *less* than 'blocksize' bytes (I believe), so it should imho be called with len(block) as the second argument instead. Or maybe add a fourth argument 'readbytes'. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1490929&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com