Jeremy Hylton [Sun, 4 May 2003 23:44:49 +0000 (23:44 +0000)]
Repair redirect handling and raise URLError on host-not-found.
The latest changes to the redirect handler couldn't possibly have been
tested, because they did not compute a newurl and failed with a
NameError. The __name__ == "__main__": block has a test for
redirects.
Also, fix SF bug 723831. A urlopen() that failed because the host was
not found raised a socket.gaierror unlike earlier versions of
urllib2. The problem is that httplib actually establishes the
connection at a different point starting with Python 2.2. Move the
try/except to endheaders(), which is where the connection gets
established.
Greg Ward [Sat, 3 May 2003 20:13:08 +0000 (20:13 +0000)]
Use True/False instead of 1/0 when talking about store_true/store_false.
Particularly important since they now store True and False rather than 1
and 0!
Greg Ward [Sat, 3 May 2003 19:45:47 +0000 (19:45 +0000)]
Add a big comment about cross-platform issues (especially OpenBSD).
This should be turned into a footnote by someone who actually
understands OSS and its relationship to Linux, FreeBSD, OpenBSD, NetBSD,
etc.
* Added a substantial number of edge case and argument tests for
the itertoolsmodule.
* Taught itertools.repeat(obj, n) to treat negative repeat counts as
zero. This behavior matches that for sequences and prevents
infinite loops.
Fred Drake [Sat, 3 May 2003 02:07:22 +0000 (02:07 +0000)]
- add title attributes to the navigation icons on the navigation bars;
this causes some browsers to offer descriptive tooltips when the
mouse hovers over the linked icon
- clean up the code in this area
Just van Rossum [Sat, 3 May 2003 00:31:35 +0000 (00:31 +0000)]
Install automatic GIL switcher upon IDE startup.
(Jack: maybe this could/should be done in Framework.py instead, that way
apps don't have to think about it. PackMan springs to mind...)
Just van Rossum [Sat, 3 May 2003 00:18:55 +0000 (00:18 +0000)]
Short and sweet module doing something very useful: for event loop
based threads, release the GIL when the event loop goes to sleep,
and acquire it again when the event loop wakes up again. OSX-only.
Jack Jansen [Fri, 2 May 2003 20:27:40 +0000 (20:27 +0000)]
CWI moved websites around without me knowing it, and together with
a bug in urllib2 this caused pimp to stop working. Fixed the URL to
make it work again.
Fred Drake [Fri, 2 May 2003 20:18:01 +0000 (20:18 +0000)]
- add link relationships to some of the links in the navigation panels
- implement custom_REL_hook() so LaTeX2HTML uses currently recommended
link types; those work fine with tools like the Mozilla Site
Navigation Bar
Anthony Baxter [Fri, 2 May 2003 15:40:46 +0000 (15:40 +0000)]
Patch 731209: Restore socketmodule's behaviour with dotted quad addresses
to that of Python2.1. Such nnn.nnn.nnn.nnn addresses are just used directly,
not passed to the resolver for a pointless lookup.
Change from a threading.Condition object to a threading.Event object for
signalling when the TCP server is done. Should hopefully solve hanging
issues for Solaris 8 & 9. Solves the apparent hanging issue with OS X.
Jack Jansen [Tue, 29 Apr 2003 21:48:46 +0000 (21:48 +0000)]
The new bundlebuilder-generated applets contain an absolute reference
to the Python used to create them (in the #! line). Therefore, when your
Python installation is moved the applets become invalid. As the
binary distribution is installed in a different place than where it was
created we need to fix up the #! lines.
When an unhandled exception happens, report the repr() of the function
that was used to start the thread. This is useful to track down the
source of the problem when there is no traceback, as can happen when a
daemon thread gets to run after Python is finialized (a new kind of
event, somehow this is now possible due to changes in Py_Finalize()).
Regain throughput lost with the _socketobject wrapper. The
throughput-sensitive methods are grabbed from the underlying _socket.socket
object. Closes SF patch 729293.
SF bug #729096: getopt online documentation example improvement
A newbie found it difficult to translate the exampe into a
case that used only short options or long options but not both.
He tried to shorten the tuple search but forgot the trailing comma,
The appropriate pattern is an equality check.
Revised the example to point him in the right direction.
Raise a ValueError when there is data that was not covered in the format string. Done to match behavior of pre-existing C-based strptime implementations.
Tim Peters [Mon, 28 Apr 2003 03:13:03 +0000 (03:13 +0000)]
SF bug 728097: tmpnam problems on windows 2.3b, breaks test.test_os.
tmpnam() appears essentially useless on Windows, and it finally broke
the test for Irmen de Jong. Read the long new comment in test_tmpnam()
for details. Since the MS implementation is insane, it might be good
if we supplied a different implementation.