Andrew MacIntyre [Sun, 11 Apr 2004 12:12:31 +0000 (12:12 +0000)]
Backport to 2.3:
Fixes for AF_UNIX support on OS/2:
- return the full size of the sockaddr_un structure, without which
bind() fails with EINVAL;
- set test_socketserver to use a socket name that meets the form
required by the underlying implementation;
- don't bother exercising the forking AF_UNIX tests on EMX - its
fork() can't handle the stress.
OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that
the socket name must start with /socket32/. Unlike Unix systems, this
file never exists in the file system.
If a file is opened with an explicit buffer size >= 1, repeated
close() calls would attempt to free() the buffer already free()ed on
the first close(). [bug introduced with patch #788249]
Making sure that the buffer is free()ed in file object deallocation is
a belt-n-braces bit of insurance against a memory leak.
Fred Drake [Thu, 1 Apr 2004 16:38:44 +0000 (16:38 +0000)]
remove workarounds to prevent "--" in code from being improperly munged to
single hyphens in the HTML output; this is no longer needed now that
../perl/python.perl makes things just work
Fred Drake [Thu, 1 Apr 2004 07:38:49 +0000 (07:38 +0000)]
Fix support for the "prog" keyword to the OptionParser constructor, as well
as directly setting the .prog attribute (which should be supported based on
the class docstring).
Closes SF bug #850964.
Fred Drake [Thu, 1 Apr 2004 04:33:39 +0000 (04:33 +0000)]
backport trunk revision 1.144, closing SF bug #793702:
- make "--" in code text not get converted to "-"
- fix minor typo in comment
(but this time the typo is fixed correctly!)
Fred Drake [Thu, 1 Apr 2004 04:11:05 +0000 (04:11 +0000)]
Note that reading from a socket may not always return all of the
remaining content of a stream when expected to do so.
Closes SF bug #725265. Backported from trunk revision 1.52.
Fred Drake [Thu, 1 Apr 2004 04:06:52 +0000 (04:06 +0000)]
- make sure the methods minidom adds to the basic DOM are attributed
to Node objects in the index (closes SF bug #832251)
- fix a variety of markup nits
Guido van Rossum [Wed, 31 Mar 2004 18:55:17 +0000 (18:55 +0000)]
Backport 1.17:
When /tmp has certain sticky bits set, newly created subdirectories
inherit those bits, causing the test_mkdtemp.test_mode() test to fail.
Remove those before comparing the actual mode to the expected mode.
Kurt B. Kaiser [Tue, 30 Mar 2004 04:07:00 +0000 (04:07 +0000)]
Keybindings with the Shift modifier now work correctly. So do bindings
which use the Space key. Limit unmodified user keybindings to the
function keys.
Python Bug 775353, IDLEfork Bugs 755647, 761557
Improve error handling during startup if there's no Tkinter.
M NEWS.txt
M PyShell.py
M config-keys.def
M configHandler.py
M keybindingDialog.py
Brett Cannon [Sat, 20 Mar 2004 21:54:35 +0000 (21:54 +0000)]
Raise RuntimeError if the second argument to isinstance() or issubclass()
is a tuple nested to a depth beyond the interpreter's recursion limit to
prevent a segfault from blowing the C stack.
Fixes bug #858016 .
Fred Drake [Sat, 20 Mar 2004 08:20:03 +0000 (08:20 +0000)]
commit the portion of PyXML patch #919008 that is relevant to the
standard library:
str() of xml.sax.SAXParseException should not fail if the line and/or
column number returned by the locator are None
(tests added)
Jack Jansen [Sat, 28 Feb 2004 23:21:50 +0000 (23:21 +0000)]
Backport of 1.29 and 1.30 (1.28 is obsolete):
Started on version 0.4: better scheme for finding correct database:
- Try not only "darwin-7.X.Y" but also "darwin-7.X" and "darwin-7",
so far we've never had to create anew database for a minor release.
- Distinguish between the various different installs (user-installed
MacPython, apple-installed MacPython, other).
Gregory P. Smith [Thu, 26 Feb 2004 10:21:13 +0000 (10:21 +0000)]
Fixes SF bsddb module bug 788421:
* Fixed a bug in the compatibility interface set_location() method
where it would not properly search to the next nearest key when
used on BTree databases. [SF bug id 788421]
* Fixed a bug in the compatibility interface set_location() method
where it could crash when looking up keys in a hash or recno
format database due to an incorrect free().
Andrew MacIntyre [Fri, 20 Feb 2004 11:58:27 +0000 (11:58 +0000)]
backport of concrete.tex v1.35:
The semantics of PyList_Check() and PyDict_Check() changed at 2.2, along
with most other concrete object checks, but the docs weren't brought into
line.
PyList_CheckExact() was added at 2.2 but never documented.
Guido van Rossum [Thu, 19 Feb 2004 19:17:08 +0000 (19:17 +0000)]
Fix two small bugs: (1) on Windows, pathname munging didn't work
right; (2) write_results_file() didn't return a tuple of two ints when
it couldn't create the file. Backport of 1.18.
Jim Fulton [Mon, 9 Feb 2004 02:57:18 +0000 (02:57 +0000)]
Fixed a bug in object.__reduce_ex__ (reduce_2) when using protocol
2. Failure to clear the error when attempts to get the __getstate__
attribute fail caused intermittent errors and odd behavior.
Walter Dörwald [Thu, 5 Feb 2004 17:44:26 +0000 (17:44 +0000)]
Backport checkin:
Fix reallocation bug in unicode.translate(): The code was comparing
characters instead of character pointers to determine space requirements.
Fred Drake [Wed, 4 Feb 2004 23:13:43 +0000 (23:13 +0000)]
Allocating a new weakref object can cause existing weakref objects for
the same object to be collected by the cyclic GC support if they are
only referenced by a cycle. If the weakref being collected was one of
the weakrefs without callbacks, some local variables for the
constructor became invalid and have to be re-computed.
The test caused a segfault under a debug build without the fix applied.
Fred Drake [Tue, 3 Feb 2004 20:18:20 +0000 (20:18 +0000)]
- add tests that exercise fixes for the PyWeakref_NewRef() and
PyWeakref_NewProxy() constructors from the C API
- elaborate the getweakrefcount() and getweakrefs() tests slightly,
including additional checks pulled from the trunk
Fred Drake [Tue, 3 Feb 2004 20:15:31 +0000 (20:15 +0000)]
Fix bug in interpretation of the "callback" argument in the constructors for
weakref ref and proxy objects; None was not being treated as identical to
NULL, though it was documented as equivalent.
Fred Drake [Thu, 1 Jan 2004 07:22:46 +0000 (07:22 +0000)]
in the section "The interpreter stack":
- rearranged a bit to avoid duplicated information
- provide more complete (and hopefully less confusing) descriptions of
the return values for most of these functions
(close SF bug #563298)