This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author techtonik
Recipients akira, techtonik
Date 2012-11-05.07:55:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352102119.8.0.725240348394.issue16409@psf.upfronthosting.co.za>
In-reply-to
Content
I strongly disagree with your summary.


It's a new behavior for the old renamed module that clearly breaks existing code ported with 2to3.

The 95% of callable usage is to get the estimated download progress (to draw progress bar or time calculations). This requires calculating value of total blocks like:

    total_blocks = math.ceil(float(total_size) / block_size)

when block_size allowed to be 0, it immediately spawns ZeroDivisionErrors. This change broke http://pypi.python.org/pypi/wget


If you make block size in callback parameters varying, the parameter with number of blocks transferred loses any sense.
History
Date User Action Args
2012-11-05 07:55:19techtoniksetrecipients: + techtonik, akira
2012-11-05 07:55:19techtoniksetmessageid: <1352102119.8.0.725240348394.issue16409@psf.upfronthosting.co.za>
2012-11-05 07:55:19techtoniklinkissue16409 messages
2012-11-05 07:55:19techtonikcreate