Moshe Zadka [Fri, 30 Mar 2001 21:01:09 +0000 (21:01 +0000)]
- exceptions.c - make_class() Added a "goto finally" so that if
populate_methods() fails, the return status will be -1 (failure)
instead of 0 (success).
fini_exceptions(): When decref'ing the static pointers to the
exception classes, clear out their dictionaries too. This breaks a
cycle from class->dict->method->class and allows the classes with
unbound methods to be reclaimed. This plugs a large memory leak in a
common Py_Initialize()/dosomething/Py_Finalize() loop.
Moshe Zadka [Fri, 30 Mar 2001 17:20:58 +0000 (17:20 +0000)]
#126161 and 123634 -- Unicode strings could not be pickled correctly.
This is *backwards incompatible* with the previous pickling scheme,
which wasnot reversible
Moshe Zadka [Fri, 30 Mar 2001 16:31:50 +0000 (16:31 +0000)]
SF bug 119622: compile errors due to redundant atof decls.
Fixed in compile.c and marshal.c
Quote tim: "Python shouldn't be in the business of defining atof"
Moshe Zadka [Thu, 29 Mar 2001 19:27:29 +0000 (19:27 +0000)]
Yay! First fix I'm commiting on the way to 2.0.1
This is supposed to fix compilation problems of the curses
module on SGI, and is based on the patch from 2.39 to 2.40
This should fix bug #116172
From the 2.39->2.40 log:
* Check for 'sgi' preprocessor symbol, not '__sgi__'
* Surround individual character macros with #ifdef's, instead of making them
all rely on STRICT_SYSV_CURSES
Metacomment: this is as much to test procedures as it is
to actually fix the bug. If you're a CVS wizard please look
at the checkin message to see I'm commiting correctly,
and e-mail me if not, and I'll do my best to back it out and
reread the docos.
Tim Peters [Mon, 16 Oct 2000 17:35:13 +0000 (17:35 +0000)]
Test for math.* exceptional behavior only in verbose mode, so that the
oddball platforms (where, e.g., math.exp(+huge) still fails to raise
OverflowError) don't fail the std test suite when run normally.
Barry Warsaw [Mon, 16 Oct 2000 15:47:50 +0000 (15:47 +0000)]
find(): Application of (slightly modified) SF patch #101928 by Ulf
Betlehem, verified by Peter Funk. Fixes preservation of language
search order lost due to use of dictionary keys instead of a list.
Closes SF bug #116964.
Tim Peters [Sat, 14 Oct 2000 07:35:15 +0000 (07:35 +0000)]
Prep the Windows installer for 2.0 final:
+ Bump the build number.
+ Changed app name in installer dialogs.
+ Fiddled dialogs to repair grammar and get rid of anachronisms (e.g.,
"ProgMan" and "Program Manager" haven't made sense since Windows 3.1!).
Fred Drake [Sat, 14 Oct 2000 05:49:30 +0000 (05:49 +0000)]
For PyErr_Format(), note that the exception parameter can be a string or
class, but not an instance (since an instance will be created using the
formatted message string as the constructor parameter).
Fred Drake [Sat, 14 Oct 2000 05:41:17 +0000 (05:41 +0000)]
Update to include all the new chapters & sections.
Convert from a howto to a manual, so we can *have* chapters!
Comment out the macconsole module documentation; Think C seems to have
disappeared.
Fred Drake [Sat, 14 Oct 2000 05:08:34 +0000 (05:08 +0000)]
Chapters on Mac Toolbox modules and other undocumented modules, ready to
be filled in with real information. Contributed by Chris Barker
<cbarker@jps.net>.
Jack Jansen [Fri, 13 Oct 2000 23:33:34 +0000 (23:33 +0000)]
If we're installing to another partition than the system partition offer to copy PythonCore in stead of aliasing it. This should fix the applet problems some people have.
Jeremy Hylton [Fri, 13 Oct 2000 21:58:13 +0000 (21:58 +0000)]
Now supports entire Python 2.0 language and still supports Python
1.5.2. The compiler generates code for the version of the interpreter
it is run under.
ast.py:
Print and Printnl add dest attr for extended print
new node AugAssign for augmented assignments
new nodes ListComp, ListCompFor, and ListCompIf for list
comprehensions
pyassem.py:
add work around for string-Unicode comparison raising UnicodeError
on comparison of two objects in code object's const table
pycodegen.py:
define VERSION, the Python major version number
get magic number using imp.get_magic() instead of hard coding
implement list comprehensions, extended print, and augmented
assignment; augmented assignment uses Delegator classes (see
doc string)
fix import and tuple unpacking for 1.5.2
transformer.py:
various changes to support new 2.0 grammar and old 1.5 grammar
add debug_tree helper than converts and symbol and token numbers
to their names
Neil Schemenauer [Fri, 13 Oct 2000 01:32:42 +0000 (01:32 +0000)]
Make the regrtest.py -l (findleaks) option considerably less obnoxious.
First, only report garbage that the GC cannot free. Second, only report
the number of objects found, not their repr(). People can dig deeper on
their own if they find a leak.
Jeremy Hylton [Thu, 12 Oct 2000 20:23:23 +0000 (20:23 +0000)]
Fix SF bug #116263: support for from .. import *
transformer.py: return '*', None from com_import_as_name
pycodegen.py: special case for name == '*'
pyassem.py: fix stack counting for IMPORT_ opcodes