[issue7540] urllib2 request does not update content length after new add_data

Fred L. Drake, Jr. report at bugs.python.org
Wed Mar 3 23:03:49 CET 2010


Fred L. Drake, Jr. <fdrake at acm.org> added the comment:

This change breaks existing uses of Python 2.6.4.

The mechanize library frequently re-initializes the data in the request
without re-using the request.  Applications (including tests) that use
mechanize now break with this TypeError.

The proper response to this issue for Python 2.6 is to make no code
changes (though a documentation enhancement may be in order).

This change should be reverted from all branches.

Python 2.6.5 should be blocked until this is done.

----------
nosy: +fdrake
status: closed -> open

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


More information about the Python-bugs-list mailing list