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)
Anthony Baxter [Thu, 18 Dec 2003 09:43:33 +0000 (09:43 +0000)]
Backport 1.13 through 1.15, after getting a begging letter from a certain
BDFL <wink>
The fullmodname() function chopped off the first character if the
module existed in the current directory.
Open results files, which contain binary pickles, in binary mode.
Remove fallback code that tries to read marshal data from a results
file, since this module never writes marshal data.