Tim Peters [Mon, 23 Dec 2002 16:26:15 +0000 (16:26 +0000)]
Backporting a small part of the socket.py changes from 2.3: get rid
of the socket wrapper __del__ method. It isn't needed, and it prevents
cyclic structures containing socket objects (primarily on Windows, where
the wrapper is used) from getting garbage-collected. People running
ZEO tests in Zope under Windows are acutely aware of this, as the
test driver prints an ever-growing gc.garbage list after each test.
Backport documentation of left-to-right evaluation order.
Highlight the difference for dictionaries and provide Py2.2.3
users which advanced notice that the evaluation order will
change for Py2.3.
Guido van Rossum [Mon, 16 Dec 2002 22:32:46 +0000 (22:32 +0000)]
try_3way_compare() was returning -1 in one case where it should return
-2 (i.e. an exception was set). (This was already fixed in 2.3
through a different refactoring.)
Worth the release of Pyton 2.2.3? Eventually, I guess...
Neal Norwitz [Wed, 20 Nov 2002 23:38:20 +0000 (23:38 +0000)]
Backport fix for SF #640094, on win32 getpass runs into unix_getpass
Make sure we have a UNIX-compatible termios.
Apparently, McMillan Installer made a termios on windows
which caused unix_getpass to be used instead of win_getpass
Backport of rev1.57:
Make the Distribution() constructor forgiving of unknown keyword
arguments, triggering a warning instead of raising an exception. (In
1.5.2/2.0, it will print to stderr.)
Fred Drake [Thu, 14 Nov 2002 22:49:20 +0000 (22:49 +0000)]
The "Up" link should point to index.html, not ./, since these
documents are used from local filesystems as well as through
webservers.
Closes SF bug #624024; not needed on the trunk.
Fred Drake [Wed, 13 Nov 2002 15:33:13 +0000 (15:33 +0000)]
Update: Older versions of Python crashed when calling repr()
(including the implied call using back-ticks) of a recursive object,
but this is no longer the case.
Reported by Manus Hand via email.
Fred Drake [Wed, 13 Nov 2002 15:15:11 +0000 (15:15 +0000)]
Clarify that PyImport_AddModule() and PyImport_ExecCodeModule() don't
add any package support structure even if a dotted-name is passed for
the module.
Closes SF bug #424106.
Fred Drake [Tue, 12 Nov 2002 22:21:01 +0000 (22:21 +0000)]
Handle the Content-Type header a little more appropriately: if it
contains options, drop them to get the major/minor content type.
Modified from the supplied patch to support more whitespace variation.
Closes SF patch #613605.
Neal Norwitz [Thu, 7 Nov 2002 00:28:54 +0000 (00:28 +0000)]
Backport 1.72:
SF bug 630824: pydoc Helper keywords missing 'yield'
Wow, what a brittle subsystem! Fixed, maybe, provided Fred doesn't
shuffle the docs around.
Fred Drake [Fri, 1 Nov 2002 21:34:39 +0000 (21:34 +0000)]
Update example for the type() function to use the currently accepted
preference of using "is" instead of "==" to compare types, use
built-in names where available, and point to the isinstance()
function.
Closes SF bug #632196.
Fred Drake [Wed, 30 Oct 2002 18:18:08 +0000 (18:18 +0000)]
Add notes to the asctime() and ctime() descriptions to make it
explicit that locale information is not used. There wasn't anything
that implied it was, but this has confused users.
Fred Drake [Mon, 28 Oct 2002 19:30:45 +0000 (19:30 +0000)]
Chapter titles that get split over multiple lines in the typeset
formats can't have whitespace after the last non-blank character (bug
in LaTeX?); fix up a couple of instances of this.
Jack Jansen [Fri, 25 Oct 2002 20:36:53 +0000 (20:36 +0000)]
Backport of 1.5:
Under Jaguar it seems that 'errn' return value keyword parameters don't
(or don't always?) show up with missed(). I think this is a bug in
Jaguar, but as it is a potential dangerous problem (the OSA event has
failed, but the Python code isn't told about this and happily continues)
this is a quick workaround.
Fred Drake [Thu, 24 Oct 2002 19:36:41 +0000 (19:36 +0000)]
Update an example to use the DOM implementation object. Explain that
the parse() and parseString() functions use a separate parser, not
actually implement a parser. (This is a common question.)
Fred Drake [Wed, 23 Oct 2002 20:24:46 +0000 (20:24 +0000)]
Deal with a FAQ:
Explain that the "xml" package requires that at least one
SAX-compliant XML parser be installed, and why this may not be
available by default. Point to the PyXML package as an extended
version of the "xml" package that can provide this fuctionality.
Note that the docs for the xml.dom and xml.sax packages are the
definitiona of the Python bindings for the DOM and SAX interfaces.