Message174875
| 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:19 | techtonik | set | recipients:
+ techtonik, akira |
| 2012年11月05日 07:55:19 | techtonik | set | messageid: <1352102119.8.0.725240348394.issue16409@psf.upfronthosting.co.za> |
| 2012年11月05日 07:55:19 | techtonik | link | issue16409 messages |
| 2012年11月05日 07:55:19 | techtonik | create |
|