Guido van Rossum [Sun, 30 Nov 2003 22:01:43 +0000 (22:01 +0000)]
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.
Will backport to 2.3 next.
Guido van Rossum [Sat, 29 Nov 2003 23:52:13 +0000 (23:52 +0000)]
- Removed FutureWarnings related to hex/oct literals and conversions
and left shifts. (Thanks to Kalle Svensson for SF patch 849227.)
This addresses most of the remaining semantic changes promised by
PEP 237, except for repr() of a long, which still shows the trailing
'L'. The PEP appears to promise warnings for operations that
changed semantics compared to Python 2.3, but this is not
implemented; we've suffered through enough warnings related to
hex/oct literals and I think it's best to be silent now.
Thomas Heller [Fri, 28 Nov 2003 19:42:56 +0000 (19:42 +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:19:33 +0000 (23:19 +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. Will backport.
Jack Jansen [Thu, 27 Nov 2003 23:12:17 +0000 (23:12 +0000)]
Package Mnager error dialogs could refer to hidden packages, which was
confusing. To be on the safe side we always show hidden packages before
showing error dialogs. Will backport.
Kurt B. Kaiser [Mon, 24 Nov 2003 05:26:16 +0000 (05:26 +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
Guido van Rossum [Mon, 24 Nov 2003 04:13:13 +0000 (04:13 +0000)]
Stop GCC warning about int literal that's so long that it becomes an
unsigned int (on a 32-bit machine), by adding an explicit 'u' to the
literal (a prime used to improve the hash function for frozenset).
* Checkin remaining documentation
* Add more tests
* Refactor and neaten the code a bit.
* Rename union_update() to update().
* Improve the algorithms (making them a closer to sets.py).
Guido van Rossum [Sat, 22 Nov 2003 23:55:50 +0000 (23:55 +0000)]
- When method objects have an attribute that can be satisfied either
by the function object or by the method object, the function
object's attribute usually wins. Christian Tismer pointed out that
that this is really a mistake, because this only happens for special
methods (like __reduce__) where the method object's version is
really more appropriate than the function's attribute. So from now
on, all method attributes will have precedence over function
attributes with the same name.
Jack Jansen [Wed, 19 Nov 2003 14:34:18 +0000 (14:34 +0000)]
Getting rid of support for MacOS9 and earlier. This is the first step,
and the biggest in size, but probably the easiest. Hunting through the
source code comes next.
Jack Jansen [Wed, 19 Nov 2003 13:45:26 +0000 (13:45 +0000)]
Forward port of various fixes that were initially only done on the
release23-maint branch:
- Remember the scroll position when rebuilding the browser (as we do far
too often). Fixes #824430.
- Allow for the documentation to be inside PythonIDE as well as in
the Python.app inside the framework (the original location for 2.3).
- Updated version numbers
- In PythonIDE, add the Tools/IDE directory as the second entry in
sys.path in stead of as the first, leaving PythonIDE.app/Contents/Resources
as the first one.
- The code for setting the working directory to $HOME was both incorrect
and in the wrong place, fixed.
- On OSX the default location for IDE scripts is now
$HOME/Library/Python/IDE-Scripts.
Kurt B. Kaiser [Wed, 19 Nov 2003 04:52:32 +0000 (04:52 +0000)]
- After an exception, run.py was not setting the exception vector. Noam
Raphael suggested correcting this so pdb's postmortem pm() would work.
IDLEfork Patch 844675
Barry Warsaw [Wed, 19 Nov 2003 02:23:01 +0000 (02:23 +0000)]
__init__(): The docstring was incorrect regarding how header wrapping
gets done when maxheaderlen <> 0. The header really gets wrapped via
the email.Header.Header class, which has a more sophisticated
algorithm than just splitting on semi-colons.
Barry Warsaw [Wed, 19 Nov 2003 02:22:36 +0000 (02:22 +0000)]
Generator's constructor: The documentation was incorrect regarding how
header wrapping gets done when maxheaderlen <> 0. The header really
gets wrapped via the email.Header.Header class, which has a more
sophisticated algorithm than just splitting on semi-colons.
Jack Jansen [Tue, 18 Nov 2003 23:09:19 +0000 (23:09 +0000)]
Modified version by Bob Ippolito. It passes the just-added test_applesingle
after some minor mods. Fixes #803498, but should NOT be backported because
the original problem seems to be unreproducable.
Just van Rossum [Tue, 18 Nov 2003 23:00:55 +0000 (23:00 +0000)]
Fix for [ 765456 ]: testAFakeZlib failed on platforms that use a
statically linked zlib module, but since the problem it tests can't
exist on these systems, simply skip it then. Will backport.
* Migrate set() and frozenset() from the sandbox.
* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.
Includes the docs for libfuncs.tex. Separate docs for the types are
forthcoming.