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.
SF bug #855317: unittest: 5.3.9 Getting Extended Error Information
The example code did not work and could not easily be made to work.
Since the docs were already complex and the feature was not used
(it took two years for the errors to surface), we decided to dedocument
it entirely, leaving unittest cleaner than before.
Fred Drake [Fri, 5 Dec 2003 16:44:01 +0000 (16:44 +0000)]
Anthony started backporting the changes needed to remove version numbers
from the Doc/ tree; this finishes the job. Version information is now
extracted from Python's Include/patchlevel.h.
backport:
Reduce the size of Big String and Big Binary tests to 2**14 (minus one
for Big String). This should make the tests pass on Win98SE. Note
that the docs only promise lengths up to 2048. Unfortunately this no
longer tests for the segfault I was seeing earlier, but I'm confident
I've nailed that one. :-) Fixes SF 852281.
To find the curses extension as a DLL (on OS/2), we need to adjust the
library search path to include the extension directory. Without this,
the curses_panel extension can't find the curses extension/DLL, which
exports some curses symbols to it.
Guido van Rossum [Sun, 30 Nov 2003 22:07:34 +0000 (22:07 +0000)]
Backport:
Remove all uses of alloca() from this module. The alloca() return value
isn't checked, and it *is* possible that a very large alloca() call is
made, e.g. when a large registry value is being read. I don't know if
alloca() in that case returns NULL or returns a pointer pointing outside
the stack, and I don't want to know -- I've simply replaced all calls to
alloca() with either PyMem_Malloc() or PyString_FromStringAndSize(NULL,)
as appropriate, followed by a size check. This addresses SF buf 851056.
Thomas Heller [Fri, 28 Nov 2003 19:35:58 +0000 (19:35 +0000)]
See SF #848614: distutils' msvccompiler now tries to detect that MSVC6
is installed but the registry settings are incomplete because the gui
has never been run.
Jack Jansen [Thu, 27 Nov 2003 23:20:06 +0000 (23:20 +0000)]
Fix (workaround, actually) for bug #844676: deselecting "show hidden" can
cause an index error. We now select the first package if this threatens
to happen. Backport of 1.17.