cpython/Lib
Jeremy Hylton 0381f48936 Send HTTP headers and message body in a single send() call.
This change addresses part of issue 4336.

Change endheaders() to take an optional message_body argument
that is sent along with the headers.  Change xmlrpclib and
httplib's other methods to use this new interface.

It is more efficient to make a single send() call, which should
get the entire client request into one packet (assuming it is
smaller than the MTU) and will avoid the long pause for delayed
ack following timeout.

Also:
- Add a comment about the buffer size for makefile().
- Extract _set_content_length() method and fix whitespace issues there.
2008-11-29 01:09:35 +00:00
..
bsddb Bugfix for issue3885 and 'DB.verify()' crash. 2008-09-23 18:54:08 +00:00
compiler follow-up of issue3473: update the compiler package to recognize the new syntax. 2008-08-20 00:08:47 +00:00
ctypes Fix issue #3547 for MingW, update comments. 2008-09-29 19:56:24 +00:00
curses
distutils Fixed issue ##3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception 2008-11-28 11:02:32 +00:00
email #2676: email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input 2008-08-15 21:03:21 +00:00
encodings
hotshot
idlelib use new showwarnings signature for idle #3391 2008-10-16 19:40:14 +00:00
json check for error conditions in _json #3623 2008-10-16 21:09:28 +00:00
lib-tk Issue #4116: Resolve member name conflict in ScrolledCanvas.__init__ 2008-11-19 09:09:41 +00:00
lib2to3 Merged revisions 67384,67386-67387,67389-67390,67392,67399-67400,67403-67405,67426 via svnmerge from 2008-11-28 22:12:14 +00:00
logging Issue #3772: Fixed regression problem in StreamHandler.emit(). 2008-09-04 07:31:21 +00:00
msilib Issue #3732: Backported r53335 to supress deprecation warning. 2008-09-01 14:24:04 +00:00
multiprocessing issue4238: bsd support for cpu_count 2008-11-28 18:59:35 +00:00
plat-aix3
plat-aix4
plat-atheos
plat-beos5
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-irix5
plat-irix6
plat-linux2
plat-mac
plat-netbsd1
plat-next3
plat-os2emx
plat-riscos
plat-sunos5
plat-unixware7
site-packages
sqlite3 Remove usage of apply() in sqlite3 to silence warnings under -3. 2008-08-04 21:19:41 +00:00
test Reflow long lines. 2008-11-29 00:09:16 +00:00
wsgiref Silence warnings under -3 triggered by wsgiref. 2008-08-04 21:30:53 +00:00
xml Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
__future__.py
__phello__.foo.py
_abcoll.py Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
_LWPCookieJar.py
_MozillaCookieJar.py
_strptime.py
_threading_local.py
abc.py Issue 3747: Fix caching in ABCMeta.__subclasscheck__ (R: Georg Brandl) 2008-09-02 10:14:47 +00:00
aifc.py Remove tuple parameter unpacking in aifc to silence warnings under -3. 2008-08-04 21:33:00 +00:00
antigravity.py easter egg 2008-10-15 11:49:10 +00:00
anydbm.py
ast.py Fixed #4062, added import for _ast.__version__ to ast to match the documented behavior. 2008-10-20 21:29:08 +00:00
asynchat.py warnings.catch_warnings() now returns a list or None instead of the custom 2008-09-09 00:49:16 +00:00
asyncore.py Fix for issue 4332 in trunk. 2008-11-19 18:26:12 +00:00
atexit.py
audiodev.py
base64.py
BaseHTTPServer.py Move test.test_support.catch_warning() to the warnings module, rename it 2008-09-02 01:25:16 +00:00
Bastion.py
bdb.py fix #4150: pdb's up command didn't work for generators in post-mortem 2008-10-22 21:16:34 +00:00
binhex.py
bisect.py
calendar.py
cgi.py Issue 3801. Fixing a dumb error in the deprecated parse_qsl() 2008-09-08 00:20:28 +00:00
CGIHTTPServer.py
cgitb.py
chunk.py
cmd.py
code.py #1288615: Python code.interact() and non-ASCII input 2008-08-07 18:42:40 +00:00
codecs.py
codeop.py
collections.py Fix namedtuple bug reported by Glenn Linderman. Template did not form correctly if the field names were input in Unicode. 2008-09-25 23:31:52 +00:00
colorsys.py
commands.py
compileall.py
ConfigParser.py Remove a __getitem__() removal on an exception to silence a warning triggered 2008-08-02 03:37:50 +00:00
contextlib.py
Cookie.py #1638033: add support for httponly on Cookie.Morsel 2008-09-06 19:28:11 +00:00
cookielib.py Update __all__ for cookielib, csv, os, and urllib2 for objects imported into 2008-08-18 00:46:22 +00:00
copy.py
copy_reg.py
cProfile.py
csv.py Update __all__ for cookielib, csv, os, and urllib2 for objects imported into 2008-08-18 00:46:22 +00:00
dbhash.py Deprecate bsddb for removal in Python 3.0. 2008-09-05 18:33:51 +00:00
decimal.py Fix: 2008-08-24 05:04:52 +00:00
difflib.py Use functools.reduce() in difflib instead of __builtin__.reduce() to silence 2008-08-09 23:34:11 +00:00
dircache.py
dis.py
doctest.py patch from issue 1108 2008-11-19 03:35:41 +00:00
DocXMLRPCServer.py Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3. 2008-08-03 22:59:46 +00:00
dumbdbm.py
dummy_thread.py Remove imports of 'warnings' that are no longer needed in dummy_thread, 2008-08-17 22:10:11 +00:00
dummy_threading.py
filecmp.py Remove imports of 'warnings' that are no longer needed in dummy_thread, 2008-08-17 22:10:11 +00:00
fileinput.py Remove a use of callable() in fileinput to silence a -3 warning. 2008-08-03 23:52:32 +00:00
fnmatch.py
formatter.py
fpformat.py
fractions.py
ftplib.py backport r66656 so people using -Qnew aren't affected 2008-09-27 22:08:12 +00:00
functools.py Copy reduce() to _functools so to have functools.reduce() not raise a warning 2008-08-09 23:30:55 +00:00
genericpath.py
getopt.py
getpass.py
gettext.py
glob.py
gzip.py
hashlib.py issue3715: docstring representation of hex escaped string needs to be double 2008-08-31 16:34:18 +00:00
heapq.py
hmac.py silence callable warning in hmac 2008-08-19 19:07:38 +00:00
htmlentitydefs.py
htmllib.py
HTMLParser.py
httplib.py Send HTTP headers and message body in a single send() call. 2008-11-29 01:09:35 +00:00
ihooks.py
imaplib.py
imghdr.py #3424 rearrange the order of tests in imghdr to place more common types first 2008-08-16 16:29:02 +00:00
imputil.py
inspect.py return ArgInfo from inspect.getargvalues #4092 2008-10-21 22:18:29 +00:00
io.py backport r67300 2008-11-20 22:06:22 +00:00
keyword.py
linecache.py
locale.py convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222) 2008-07-25 20:40:19 +00:00
macpath.py
macurl2path.py
mailbox.py Bug 3228: Explicitly supply the file mode to avoid creating executable files, 2008-08-04 01:43:43 +00:00
mailcap.py
markupbase.py
md5.py
mhlib.py
mimetools.py warnings.catch_warnings() now returns a list or None instead of the custom 2008-09-09 00:49:16 +00:00
mimetypes.py
MimeWriter.py
mimify.py
modulefinder.py Fixed a modulefinder crash on certain relative imports. 2008-10-30 20:18:13 +00:00
multifile.py
mutex.py
netrc.py
new.py
nntplib.py
ntpath.py
nturl2path.py
numbers.py Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
opcode.py
optparse.py raise a better error 2008-11-23 02:09:41 +00:00
os.py Issue #3708: os.urandom no longer goes into an infinite loop when passed a 2008-09-02 05:36:11 +00:00
os2emxpath.py
pdb.doc
pdb.py fix #4150: pdb's up command didn't work for generators in post-mortem 2008-10-22 21:16:34 +00:00
pickle.py Remove use of callable() from pickle to silence warnings under -3. 2008-08-04 21:34:34 +00:00
pickletools.py
pipes.py
pkgutil.py
platform.py #4157 move two test functions out of platform.py. 2008-10-21 22:01:38 +00:00
plistlib.py
popen2.py
poplib.py
posixfile.py
posixpath.py
pprint.py
profile.py Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning. 2008-08-03 22:38:19 +00:00
pstats.py Silence -3 warnings in pstats: a dict.has_key() usage and backport solution to 2008-08-03 22:52:42 +00:00
pty.py
py_compile.py
pyclbr.py
pydoc.py #3707: fix inf. recursion in pydoc topic search. Rev'd by Antoine. 2008-08-30 19:03:43 +00:00
pydoc_topics.py update pydoc topics 2008-10-02 20:46:58 +00:00
Queue.py
quopri.py
random.py getrandombits is actually getrandbits 2008-07-30 13:46:53 +00:00
re.py Remove the use of callable() in re to silence warnings under -3. 2008-08-04 21:07:59 +00:00
repr.py
rexec.py
rfc822.py
rlcompleter.py Remove a use of callable() to silence the warning triggered under -3. 2008-08-01 01:45:49 +00:00
robotparser.py Close issue 3437 - missing state change when Allow lines are processed. 2008-07-27 00:49:02 +00:00
runpy.py
sched.py
sets.py
sgmllib.py
sha.py
shelve.py Remove imports of 'warnings' that are no longer needed in dummy_thread, 2008-08-17 22:10:11 +00:00
shlex.py
shutil.py #3134: shutil referenced undefined WindowsError symbol 2008-08-11 17:21:36 +00:00
SimpleHTTPServer.py
SimpleXMLRPCServer.py Remove a dict.has_key() and callable() usage in SimpleXMLRPCServer as triggered 2008-08-03 22:57:23 +00:00
site.py
smtpd.py
smtplib.py
sndhdr.py
socket.py Remove buffer() usage in the socket module by just slicing directly on the 2008-08-08 04:27:28 +00:00
SocketServer.py
sre.py
sre_compile.py remove set compat cruft 2008-10-14 22:37:18 +00:00
sre_constants.py
sre_parse.py remove set compat cruft 2008-10-14 22:37:18 +00:00
ssl.py fix for release blocker 3910, 2.6 regression in socket.ssl method 2008-09-29 18:56:38 +00:00
stat.py
statvfs.py
string.py fix comment 2008-11-09 01:52:32 +00:00
StringIO.py
stringold.py Replace all map(None, a) with list(a). 2008-07-18 19:06:13 +00:00
stringprep.py
struct.py
subprocess.py Remove warnings generated for the suprocess module when run under -3. Required 2008-08-08 04:19:32 +00:00
sunau.py
sunaudio.py Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality. 2008-07-18 19:30:22 +00:00
symbol.py
symtable.py fix silly errors of mine 2008-08-20 02:15:42 +00:00
tabnanny.py
tarfile.py Remove a dict.has_key() and list.sort(cmp=) usage from tarfile to silence 2008-08-04 21:23:07 +00:00
telnetlib.py
tempfile.py
textwrap.py Remove assignment to True/False to silence the SyntaxWarning that is triggered 2008-08-01 01:34:05 +00:00
this.py
threading.py Backport relevant part of r66274 (in issue #874900). 2008-09-06 23:04:32 +00:00
timeit.py
toaiff.py
token.py
tokenize.py Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised 2008-08-02 03:15:20 +00:00
trace.py
traceback.py Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module. 2008-08-01 01:21:50 +00:00
tty.py
types.py
unittest.py Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
urllib.py #3879 fix a regression in urllib.getproxies_environment 2008-09-21 21:27:51 +00:00
urllib2.py Update __all__ for cookielib, csv, os, and urllib2 for objects imported into 2008-08-18 00:46:22 +00:00
urlparse.py Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module 2008-09-03 22:35:50 +00:00
user.py
UserDict.py
UserList.py Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
UserString.py
uu.py
uuid.py #4363: Let uuid.uuid1() and uuid.uuid4() run even if the ctypes module is not present. 2008-11-21 22:05:48 +00:00
warnings.py Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon) 2008-09-11 12:11:06 +00:00
wave.py
weakref.py Update __all__ for cookielib, csv, os, and urllib2 for objects imported into 2008-08-18 00:46:22 +00:00
webbrowser.py
whichdb.py
wsgiref.egg-info
xdrlib.py
xmllib.py
xmlrpclib.py Send HTTP headers and message body in a single send() call. 2008-11-29 01:09:35 +00:00
zipfile.py Issue #3535: zipfile couldn't read some zip files larger than 2GB. 2008-09-05 23:30:23 +00:00