[issue10050] urllib.request still has old 2.x urllib primitives

anatoly techtonik report at bugs.python.org
Mon Nov 5 11:32:22 CET 2012


anatoly techtonik added the comment:

Please note that changes to urlretrieve to return block size 0 in callback breaks existing PyPI apps, such as http://pypi.python.org/pypi/wget

It would be nice if you revert this part from http://hg.python.org/cpython/rev/53715804dc71

Also if you change semantics of "block size" (which is assumed to be fixed) to "data read size" then the "count of blocks transferred" losses any sense.

Changed callback semantics without renaming function or introducing a different type of callback doesn't add clarity to the code that should be maintained for both Python 2 and Python 3 version.

Please add issue #16409 as affected by this bug.

----------
nosy: +techtonik

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10050>
_______________________________________


More information about the Python-bugs-list mailing list