STINNER Victor added the comment:
changeset: 89857:ad0c75b7bd7d
tag: tip
parent: 89855:9120196b3114
parent: 89856:68335b8afb1f
user:Victor Stinner victor.stin...@gmail.com
date:Wed Mar 19 17:34:12 2014 +0100
description:
(Merge 3.4) Skip
Roundup Robot added the comment:
New changeset e6d862886e5c by R David Murray in branch 'default':
whatsnew: urllib Request objects are now reusable.
http://hg.python.org/cpython/rev/e6d862886e5c
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset b1579eb4e1bc by R David Murray in branch 'default':
#17485: Delete the Content-Length header if the data attribute is deleted.
http://hg.python.org/cpython/rev/b1579eb4e1bc
--
___
Python tracker
Roundup Robot added the comment:
New changeset 618ea5612e83 by Andrew Svetlov in branch 'default':
Issue #16464: reset Request's Content-Length header on .data change.
http://hg.python.org/cpython/rev/618ea5612e83
--
nosy: +python-dev
___
Python
Andrew Svetlov added the comment:
Pushed.
Thanks, Alexey.
--
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16464
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
assignee: - asvetlov
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16464
Andrew Svetlov added the comment:
I'm agree with solution, see my comments in review for the patch.
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16464
___
Andrew Svetlov added the comment:
Perhaps it's a bit new behavior and should be applied to 3.4 only.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16464
___
Alexey Kachayev added the comment:
Fixed patch is attached.
Documentation is updated.
--
Added file: http://bugs.python.org/file28074/issue16464_fixed.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16464
Alexey Kachayev added the comment:
This is special case for more general problem. When request is executed with
HTTP client and data is not None, it calculates content length and adds special
header to request. Then one can change request.data attribute value, but header
Content-length is not
New submission from Terry J. Reedy:
Code based on python-list post by a do-not-wish-to-register urllib user.
import urllib.request
opener = urllib.request.build_opener()
request = urllib.request.Request(http://example.com/;, headers =
{Content-Type: application/x-www-form-urlencoded})
11 matches
Mail list logo