- 24 Jun, 2003 1 commit
-
-
Greg Stein authored
In response to "shouldn't the client close the file?", the answer is "no". The original design behind HTTPConnection is that the client did not have to worry about it. The response would close itself when you read the last of the data from it. This closing also dealt with allowing the connection to perform another request/response (if it was a persistent connection). However... the auto-close behavior broke compatibility with the classic httplib.HTTP class' behavior when a zero-length response body was present. In that situation, the HTTPResponse object was auto-closing it since there was no data present, and for an HTTP/1.0 connection-close socket (or an HTTP/0.9 request) connection, that also ended up closing the socket. When an httplib.HTTP user went to read the socket... boom. A patch to correct the auto-close (for compat with old httplib users) was added in rev 1.22. But for non-zero-length *chunked* bodies, we should keep the auto-close behavior. The library user is not reading the socket (they can't cuz of the chunked response we just got done handling), so they should be immune to the response closing the socket. In fact, I would like to see (one day) the auto-close restored, and the HTTP subclass would simply have a flag to disable that behavior (for back-compat purposes).
-
- 23 Jun, 2003 1 commit
-
-
Raymond Hettinger authored
-
- 22 Jun, 2003 2 commits
-
-
Martin v. Löwis authored
IOBinding.encoding. Also set sys.std{in,out,err}.encoding, for both the local and the subprocess case.
-
Tim Peters authored
fix the hangs on Win98SE when starting IDLE via "python" from a DOS box, but did appear to make them harder to provoke. I closed that bug report as being hopeless (and if someone wants to open it again, don't dare assign it to me again <0.1 wink>).
-
- 21 Jun, 2003 8 commits
-
-
Jack Jansen authored
DESTDIR being non-null.
-
Jeremy Hylton authored
-
Just van Rossum authored
-
Just van Rossum authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
Fixes #700827
-
Martin v. Löwis authored
Also add force, to recompile string.pyc in DESTDIR (which would normally compiled by running compileall.py).
-
- 20 Jun, 2003 20 commits
-
-
Jack Jansen authored
to the script. Fixes #757544.
-
Barry Warsaw authored
instead of rfc822 as the Message factory.
-
Just van Rossum authored
- move the normpath stuff around a bit - added dubious special case to addPythonFramework()
-
Jack Jansen authored
xxxMODE flags don't cut it. Also set the umask to 2 before doing the compileall on the destination system.
-
Just van Rossum authored
-
Just van Rossum authored
executable in the bundle. Therefore got rid of the "binaries" attribute.
-
Jack Jansen authored
framework. Fixes #758112.
-
Just van Rossum authored
-
Just van Rossum authored
-
Raymond Hettinger authored
-
Neal Norwitz authored
-
Raymond Hettinger authored
It depended on the previously removed basic block checker to prevent a jump into the middle of the transformed block. Clears SF 757818: tuple assignment -- SystemError: unknown opcode
-
Jack Jansen authored
-
Jack Jansen authored
of type .py, .pyw and .pyc. If not, post a warning.
-
Jack Jansen authored
the DESTDIR patch. Fixed.
-
Fred Drake authored
-
Fred Drake authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Gustavo Niemeyer authored
From gcov's output (based on a locally changed _sre.c): 82.07% of 1372 source lines executed in file ./Modules/_sre.c
-
- 19 Jun, 2003 8 commits
-
-
Jack Jansen authored
-
Jack Jansen authored
extensions on top of Python 2.2 no longer seems feasible.
-
Jack Jansen authored
and not part of a normal frameworkinstall) that installs Demo and Tools and a readme file into /Applications/MacPython-2.3/Extras. This will give people access to the demos and tools if they instal Python through the binary installer.
-
Jack Jansen authored
-
Skip Montanaro authored
paths.
-
Walter Dörwald authored
aligned.
-
Walter Dörwald authored
From SF patch #757058.
-
Tim Peters authored
explaining what's wrong with the two simpler variants.
-