Issue 13073: message_body argument of HTTPConnection.endheaders is undocumented (original) (raw)

Created on 2011-09-30 08:09 by petri.lehtinen, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue13073.patch beardedp,2011-10-02 07:32 review
Messages (10)
msg144676 - (view) Author: Petri Lehtinen (petri.lehtinen) * (Python committer) Date: 2011-09-30 08:09
The argument is essential to avoid slowdown with delayed ACKs and the Nagle algorithm, so it should be documented. It was added when fixing issue 4336. I believe that it's new in Python 2.7.
msg144759 - (view) Author: Ben Hayden (beardedp) * Date: 2011-10-02 07:32
I added in docs for the method from the actual method docstring from the http.client module.
msg144796 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2011-10-02 23:39
This is fixed the following changesets. changeset a3f2dba93743 changeset 1ed413b52af3 changeset 277688052c5a Thanks for the patch, Ben Hayden.
msg144944 - (view) Author: Petri Lehtinen (petri.lehtinen) * (Python committer) Date: 2011-10-05 10:30
The 2.7 documentation should mention the version in which the argument was added. I believe it was 2.7.
msg144945 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-10-05 10:32
I also left some comments on the review page that should be addressed.
msg144951 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-10-05 15:27
New changeset befa7b926aad by Senthil Kumaran in branch '3.2': Issue #13073 - Address the review comments made by Ezio. http://hg.python.org/cpython/rev/befa7b926aad New changeset a7b7ba225de7 by Senthil Kumaran in branch 'default': merge from 3.2. Issue #13073 - Address the review comments made by Ezio. http://hg.python.org/cpython/rev/a7b7ba225de7
msg144952 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-10-05 15:53
New changeset 64fae6f7b64c by Senthil Kumaran in branch '2.7': Issue13073 - Address review comments and add versionchanged information in the docs. http://hg.python.org/cpython/rev/64fae6f7b64c
msg144953 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2011-10-05 15:54
I believe, I have addressed all the comments. Closing this report.
msg144999 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-10-06 11:38
It is IMO a source of confusion that the doc talk about a string instead of “a bytes object” (3.x) or “a string (str)” (2.x, unless unicode is supported too).
msg145018 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2011-10-06 15:03
Yes, I agree. I think, it can be clarified at that point too. Because. in 2.7 the string is being checked and in 3.3 the message_body is checked if it's instance of bytes. But, I think, it should be carefully worded (aligned with how other socket message args are mentioned).
History
Date User Action Args
2022-04-11 14:57:22 admin set github: 57282
2011-10-06 15:03:03 orsenthil set messages: +
2011-10-06 11:38:11 eric.araujo set nosy: + eric.araujomessages: +
2011-10-05 15:54:12 orsenthil set status: open -> closedresolution: fixedmessages: +
2011-10-05 15:53:12 python-dev set messages: +
2011-10-05 15:27:52 python-dev set nosy: + python-devmessages: +
2011-10-05 10:32:28 ezio.melotti set nosy: + ezio.melottimessages: +
2011-10-05 10:30:42 petri.lehtinen set status: closed -> openresolution: fixed -> (no value)messages: +
2011-10-02 23:39:31 orsenthil set status: open -> closedresolution: fixedmessages: + stage: needs patch -> resolved
2011-10-02 07:32:20 beardedp set files: + issue13073.patchnosy: + beardedpmessages: + keywords: + patch
2011-09-30 09:23:50 orsenthil set assignee: docs@python -> orsenthilnosy: + orsenthil
2011-09-30 08:09:02 petri.lehtinen create