]> granicus.if.org Git - python/log
python
24 years agoOops, need to import Res.
Jack Jansen [Wed, 28 Feb 2001 15:53:18 +0000 (15:53 +0000)]
Oops, need to import Res.

24 years agoIf we can't find our splash dialog (i.e. we're probably running from source) go into...
Jack Jansen [Wed, 28 Feb 2001 11:23:04 +0000 (11:23 +0000)]
If we can't find our splash dialog (i.e. we're probably running from source) go into interactive mode: print what we're doing and ask about carbon/classic configure.

24 years agoWhitespace normalization.
Tim Peters [Wed, 28 Feb 2001 08:26:44 +0000 (08:26 +0000)]
Whitespace normalization.

24 years agoRemoved now-unreferenced CHECK_IMPORT_CASE from Windows config.h.
Tim Peters [Wed, 28 Feb 2001 08:15:16 +0000 (08:15 +0000)]
Removed now-unreferenced CHECK_IMPORT_CASE from Windows config.h.
NOTE:  someone who understands Unix config should remove it from acconfig.h too.

24 years agoPrint the offending line of code in the traceback for SyntaxErrors
Jeremy Hylton [Wed, 28 Feb 2001 07:07:43 +0000 (07:07 +0000)]
Print the offending line of code in the traceback for SyntaxErrors
raised by the compiler.

XXX For now, text entered into the interactive intepreter is not
printed in the traceback.

Inspired by a patch from Roman Sulzhyk

compile.c:

Add helper fetch_program_text() that opens a file and reads until it
finds the specified line number.  The code is a near duplicate of
similar code in traceback.c.

Modify com_error() to pass two arguments to SyntaxError constructor,
where the second argument contains the offending text when possible.

Modify set_error_location(), now used only by the symtable pass, to
set the text attribute on existing exceptions.

pythonrun.c:

Change parse_syntax_error() to continue of the offset attribute of a
SyntaxError is None.  In this case, it sets offset to -1.

Move code from PyErr_PrintEx() into helper function
print_error_text().  In the helper, only print the caret for a
SyntaxError if offset > 0.

24 years agoAck -- my eyes are getting bleary. Typos in the comment typo repairs.
Tim Peters [Wed, 28 Feb 2001 05:57:51 +0000 (05:57 +0000)]
Ack -- my eyes are getting bleary.  Typos in the comment typo repairs.

24 years agoComment typos.
Tim Peters [Wed, 28 Feb 2001 05:56:18 +0000 (05:56 +0000)]
Comment typos.

24 years agoImplement PEP 235: Import on Case-Insensitive Platforms.
Tim Peters [Wed, 28 Feb 2001 05:34:27 +0000 (05:34 +0000)]
Implement PEP 235:  Import on Case-Insensitive Platforms.
    http://python.sourceforge.net/peps/pep-0235.html

Renamed check_case to case_ok.  Substantial code rearrangement to get
this stuff in one place in the file.  Innermost loop of find_module()
now much simpler and #ifdef-free, and I want to keep it that way (it's
bad enough that the innermost loop is itself still in an #ifdef!).

Windows semantics tested and are fine.

Jason, Cygwin *should* be fine if and only if what you did before "worked"
for case_ok.

Jack, the semantics on your flavor of Mac have definitely changed (see
the PEP), and need to be tested.  The intent is that your flavor of Mac
now work the same as everything else in the "lower left" box, including
respecting PYTHONCASEOK.

Steven, sorry, you did the most work here so far but you got screwed the
worst.  Happy to work with you on repairing it, but I don't understand
anything about all your Mac variants.  We need to add another branch (or
two, three, ...?) inside case_ok.  But we should not need to change
anything else.

24 years agoAdded regression test for SF tracker bug #403871: AttributeError in
Fred Drake [Wed, 28 Feb 2001 05:34:16 +0000 (05:34 +0000)]
Added regression test for SF tracker bug #403871:  AttributeError in
    ZipFile.__del__() when there was an IOError opening the underlying
    file in ZipFile.__init__().

    This is an odd test: since the exception is in the __del__() method,
    it is not propogated.  This test will trigger it but regrtest.py
    does not detect the failure (not sure why); we are dependent on it
    actually being noticed by a user to get a new bug report if it ever
    fails.  ;-(

    On the other hand, this makes sure that code gets exercised, so
    a failure could be noticed!

24 years agoFix SF tracker bug #403871: AttributeError in ZipFile.__del__() when
Fred Drake [Wed, 28 Feb 2001 05:29:34 +0000 (05:29 +0000)]
Fix SF tracker bug #403871:  AttributeError in ZipFile.__del__() when
    there was an IOError opening the underlying file in ZipFile.__init__().

24 years agoFix SF buf 404774 submitted by Gregory H. Ball
Jeremy Hylton [Wed, 28 Feb 2001 02:42:56 +0000 (02:42 +0000)]
Fix SF buf 404774 submitted by Gregory H. Ball

A user program could delete a function's func_closure, which would
cause it to crash when called.

24 years agoNeed to support single_input explicitly so from __future__ imports
Jeremy Hylton [Wed, 28 Feb 2001 02:26:14 +0000 (02:26 +0000)]
Need to support single_input explicitly so from __future__ imports
are legal at the interactive interpreter prompt.  They don't do
anything yet...

24 years agoPresumed correct compiler pass for future statements
Jeremy Hylton [Wed, 28 Feb 2001 01:58:08 +0000 (01:58 +0000)]
Presumed correct compiler pass for future statements
XXX still need to integrate into symtable API

compile.h: Remove ff_n_simple_stmt; obsolete.

           Add ff_found_docstring used internally to skip one and only
           one string at the beginning of a module.

compile.c: Add check for from __future__ imports to far into the file.

     In symtable_global() check for -1 returned from
   symtable_lookup(), which signifies name not defined.

   Add missing DECERF in symtable_add_def.

           Free c->c_future.

future.c:  Add special handling for multiple statements joined on a
   single line using one or more semicolons; this form can
           include an illegal future statement that would otherwise be
           hard to detect.

   Add support for detecting and skipping doc strings.

24 years agoverify that warnings are issued for bogus uses of global
Jeremy Hylton [Wed, 28 Feb 2001 01:51:01 +0000 (01:51 +0000)]
verify that warnings are issued for bogus uses of global

24 years agoadded missing element to __all__
Skip Montanaro [Wed, 28 Feb 2001 01:03:48 +0000 (01:03 +0000)]
added missing element to __all__

24 years agoadded some elements missing from __all__
Skip Montanaro [Wed, 28 Feb 2001 01:00:58 +0000 (01:00 +0000)]
added some elements missing from __all__

24 years agoMacintosh compatibility.
Ka-Ping Yee [Tue, 27 Feb 2001 23:36:29 +0000 (23:36 +0000)]
Macintosh compatibility.

24 years agoAcknowledgements.
Ka-Ping Yee [Tue, 27 Feb 2001 23:35:09 +0000 (23:35 +0000)]
Acknowledgements.

24 years agoUpdated for 2.1a3
Jack Jansen [Tue, 27 Feb 2001 23:24:07 +0000 (23:24 +0000)]
Updated for 2.1a3

24 years agoAdded Popt resource for "dont show console"
Jack Jansen [Tue, 27 Feb 2001 23:22:51 +0000 (23:22 +0000)]
Added Popt resource for "dont show console"
Changed SIZE resource to be carbon-compatible.

24 years agoVarious tweaks to make it work on MacOSX.
Jack Jansen [Tue, 27 Feb 2001 23:22:02 +0000 (23:22 +0000)]
Various tweaks to make it work on MacOSX.

24 years agoAdded future.c
Jack Jansen [Tue, 27 Feb 2001 23:19:58 +0000 (23:19 +0000)]
Added future.c

24 years agoFix $Revision$ processing so it doesn't get eaten by CVS!
Ka-Ping Yee [Tue, 27 Feb 2001 22:46:01 +0000 (22:46 +0000)]
Fix $Revision$ processing so it doesn't get eaten by CVS!

24 years agoAdd $Revision: $ tag.
Ka-Ping Yee [Tue, 27 Feb 2001 22:43:48 +0000 (22:43 +0000)]
Add $Revision: $ tag.

24 years agoAdd display of $Revision $ and credits.
Ka-Ping Yee [Tue, 27 Feb 2001 22:42:36 +0000 (22:42 +0000)]
Add display of $Revision $ and credits.

24 years agoUpdate documentation for termios module; do not refer to the TERMIOS module
Fred Drake [Tue, 27 Feb 2001 22:01:15 +0000 (22:01 +0000)]
Update documentation for termios module; do not refer to the TERMIOS module
for constant definitions.

Add a deprecation to the TERMIOS module.

24 years agoNo need to call filterwarnings() to suppress further warnings from this
Fred Drake [Tue, 27 Feb 2001 21:51:47 +0000 (21:51 +0000)]
No need to call filterwarnings() to suppress further warnings from this
module; that won't happen.

24 years agoReplace all the platform-specific TERMIOS modules with a portable version
Fred Drake [Tue, 27 Feb 2001 21:35:40 +0000 (21:35 +0000)]
Replace all the platform-specific TERMIOS modules with a portable version
based on the termios module.  The only added "feature" is the deprecation
warning it spits out.

24 years agoGet the needed constants from termios, not TERMIOS.
Fred Drake [Tue, 27 Feb 2001 21:23:31 +0000 (21:23 +0000)]
Get the needed constants from termios, not TERMIOS.

24 years agoDefine the constants needed for working with these functions directly
Fred Drake [Tue, 27 Feb 2001 21:22:39 +0000 (21:22 +0000)]
Define the constants needed for working with these functions directly
in this module; no more need for TERMIOS.py.

24 years agoBacking out nested scopes broke the Windows build. Repairing.
Tim Peters [Tue, 27 Feb 2001 21:11:46 +0000 (21:11 +0000)]
Backing out nested scopes broke the Windows build.  Repairing.

24 years agoPatch #404680: disables the nis module and enables the dl module when
Andrew M. Kuchling [Tue, 27 Feb 2001 20:54:23 +0000 (20:54 +0000)]
Patch #404680: disables the nis module and enables the dl module when
    building under Cygwin.  Makes some fixes to the dlmodule in order to
    compile with Cygwin.

24 years agoadd from __future__ import nested_scopes to strings passed to compile
Jeremy Hylton [Tue, 27 Feb 2001 20:23:58 +0000 (20:23 +0000)]
add from __future__ import nested_scopes to strings passed to compile

24 years agoTeach Windows build about new future.c.
Tim Peters [Tue, 27 Feb 2001 19:52:02 +0000 (19:52 +0000)]
Teach Windows build about new future.c.

24 years agoBug #229280: remove '/' characters from the OS name (for BSD/OS :) )
Andrew M. Kuchling [Tue, 27 Feb 2001 19:25:42 +0000 (19:25 +0000)]
Bug #229280: remove '/' characters from the OS name (for BSD/OS :) )

24 years agoPatch #403947: On Cygwin, use the Unix compiler class, and not
Andrew M. Kuchling [Tue, 27 Feb 2001 19:13:15 +0000 (19:13 +0000)]
Patch #403947: On Cygwin, use the Unix compiler class, and not
 the Cygwin-specific compiler class.

 (According to Jason Tishler, cygwinccompiler needs some work to
  handle the differences in Cygwin- and MSVC-Python. Makefile and
  config files are currently ignored by cygwinccompiler, as it was
  written to support cygwin for extensions which are intended to be
  used with the standard MSVC built Python.)

24 years agoImproved __future__ parser; still more to do
Jeremy Hylton [Tue, 27 Feb 2001 19:07:02 +0000 (19:07 +0000)]
Improved __future__ parser; still more to do

Makefile.pre.in: add target future.o

Include/compile.h: define PyFutureFeaters and PyNode_Future()
                   add c_future slot to struct compiling

Include/symtable.h: add st_future slot to struct symtable

Python/future.c: implementation of PyNode_Future()

Python/compile.c: use PyNode_Future() for nested_scopes support

Python/symtable.c: include compile.h to pick up PyFutureFeatures decl

24 years agoGustavo Niemeyer <niemeyer@conectiva.com>:
Fred Drake [Tue, 27 Feb 2001 18:56:46 +0000 (18:56 +0000)]
Gustavo Niemeyer <niemeyer@conectiva.com>:
Fixed recno support (keys are integers rather than strings).
Work around DB bug that cause stdin to be closed by rnopen() when the
DB file needed to exist but did not (no longer segfaults).

This closes SF tracker patch #403445.

Also wrapped some long lines and added whitespace around operators -- FLD.

24 years agoChange EXEEXT back to EXE in the Makefile. Other tools may depend on the name.
Neil Schemenauer [Tue, 27 Feb 2001 18:50:56 +0000 (18:50 +0000)]
Change EXEEXT back to EXE in the Makefile.  Other tools may depend on the name.
The name in configure is still EXEEXT because that's what autoconf calls it.
Also, replace a few occurrences of "python" with "$(PYTHON)".

24 years agoPatch #404275: generate a reasonable platform string for AIX
Andrew M. Kuchling [Tue, 27 Feb 2001 18:48:00 +0000 (18:48 +0000)]
Patch #404275: generate a reasonable platform string for AIX

24 years agoRemove two meaningless, module-level global statements (one of a
Jeremy Hylton [Tue, 27 Feb 2001 18:44:14 +0000 (18:44 +0000)]
Remove two meaningless, module-level global statements (one of a
non-existent variable :-).

Reflow long lines.

24 years agoPatch #403985: Add support for weak-keyed dictionaries
Martin v. Löwis [Tue, 27 Feb 2001 18:36:56 +0000 (18:36 +0000)]
Patch #403985: Add support for weak-keyed dictionaries

24 years agoremove commented-out vestiges of access statement
Jeremy Hylton [Tue, 27 Feb 2001 18:36:14 +0000 (18:36 +0000)]
remove commented-out vestiges of access statement

24 years agoconditionally include unistd.h to pick up confstr declaration. attempt to
Skip Montanaro [Tue, 27 Feb 2001 17:04:34 +0000 (17:04 +0000)]
conditionally include unistd.h to pick up confstr declaration. attempt to
squelch warning from GCC 2.95.2 on Solaris - partially addresses bug
#232787.

24 years agopydoc: text and HTML documentation generator for interactive use
Ka-Ping Yee [Tue, 27 Feb 2001 14:43:46 +0000 (14:43 +0000)]
pydoc: text and HTML documentation generator for interactive use

24 years agoinspect: a module for getting information out of live Python objects
Ka-Ping Yee [Tue, 27 Feb 2001 14:43:21 +0000 (14:43 +0000)]
inspect: a module for getting information out of live Python objects

24 years agoSetListCellIndent() argument was guessed incorrectly. Fixed.
Jack Jansen [Tue, 27 Feb 2001 13:00:36 +0000 (13:00 +0000)]
SetListCellIndent() argument was guessed incorrectly. Fixed.

24 years agoSoundex has gone.
Jack Jansen [Tue, 27 Feb 2001 12:59:49 +0000 (12:59 +0000)]
Soundex has gone.

24 years agoSoundex has gone.
Jack Jansen [Tue, 27 Feb 2001 12:48:42 +0000 (12:48 +0000)]
Soundex has gone.

24 years agoDialog and Window objects are (finally) different beasts.
Jack Jansen [Tue, 27 Feb 2001 11:05:00 +0000 (11:05 +0000)]
Dialog and Window objects are (finally) different beasts.

24 years agoUse the filename, not the pathname, in the definitions file
Jack Jansen [Tue, 27 Feb 2001 11:04:20 +0000 (11:04 +0000)]
Use the filename, not the pathname, in the definitions file
comment. This way the generated files are identical when generated on
different machines.

24 years agoFixing bug #227562 by calling URLopener.http_error_default when
Moshe Zadka [Tue, 27 Feb 2001 06:27:04 +0000 (06:27 +0000)]
Fixing bug #227562 by calling  URLopener.http_error_default when
an invalid 401 request is being handled.

24 years agoAdd warnings about undefined "global"
Jeremy Hylton [Tue, 27 Feb 2001 05:15:57 +0000 (05:15 +0000)]
Add warnings about undefined "global"
SF bug #233532

XXX Can't figure out how to write test cases that work with warnings

24 years agoAdd Vladimir Marangozov's object allocator. It is disabled by default. This
Neil Schemenauer [Tue, 27 Feb 2001 04:45:05 +0000 (04:45 +0000)]
Add Vladimir Marangozov's object allocator. It is disabled by default. This
closes SF patch #401229.

24 years agoPreliminary support for future nested scopes
Jeremy Hylton [Tue, 27 Feb 2001 04:23:34 +0000 (04:23 +0000)]
Preliminary support for future nested scopes

compile.h: #define NESTED_SCOPES_DEFAULT 0 for Python 2.1
           __future__ feature name: "nested_scopes"

symtable.h: Add st_nested_scopes slot.  Define flags to track exec and
    import star.

Lib/test/test_scope.py: requires nested scopes

compile.c: Fiddle with error messages.

    Reverse the sense of ste_optimized flag on
    PySymtableEntryObjects.  If it is true, there is an optimization
    conflict.

    Modify get_ref_type to respect st_nested_scopes flags.

    Refactor symtable_load_symbols() into several smaller functions,
    which use struct symbol_info to share variables.  In new function
    symtable_update_flags(), raise an error or warning for import * or
    bare exec that conflicts with nested scopes.  Also, modify handle
    for free variables to respect st_nested_scopes flag.

    In symtable_init() assign st_nested_scopes flag to
    NESTED_SCOPES_DEFAULT (defined in compile.h).

    Add preliminary and often incorrect implementation of
    symtable_check_future().

    Add symtable_lookup() helper for future use.

24 years agoDocument XML changes.
Martin v. Löwis [Tue, 27 Feb 2001 04:21:58 +0000 (04:21 +0000)]
Document XML changes.

24 years agoUpdates to describe function attributes.
Barry Warsaw [Tue, 27 Feb 2001 03:36:30 +0000 (03:36 +0000)]
Updates to describe function attributes.

24 years agoUpdates to the semantics of function and method attributes.
Barry Warsaw [Tue, 27 Feb 2001 03:32:35 +0000 (03:32 +0000)]
Updates to the semantics of function and method attributes.

24 years agoMention setup.py in the instructions
Andrew M. Kuchling [Tue, 27 Feb 2001 03:29:52 +0000 (03:29 +0000)]
Mention setup.py in the instructions
Add note about linuxaudiodev possibly working on BSD

24 years agoUpdate build notes to mention setup.py
Andrew M. Kuchling [Tue, 27 Feb 2001 03:24:24 +0000 (03:24 +0000)]
Update build notes to mention setup.py

24 years agoFix typo
Andrew M. Kuchling [Tue, 27 Feb 2001 03:15:00 +0000 (03:15 +0000)]
Fix typo

24 years agoAdd missing dependents of graminit.h.
Neil Schemenauer [Tue, 27 Feb 2001 02:45:36 +0000 (02:45 +0000)]
Add missing dependents of graminit.h.

24 years agoGenerate grammar source files in srcdir. Ignore the error if they cannot
Neil Schemenauer [Tue, 27 Feb 2001 02:19:16 +0000 (02:19 +0000)]
Generate grammar source files in srcdir.  Ignore the error if they cannot
be created (perhaps the source directory is read-only).

24 years agoDon't create the Include directory if building outside of the source
Neil Schemenauer [Tue, 27 Feb 2001 02:15:14 +0000 (02:15 +0000)]
Don't create the Include directory if building outside of the source
directory.  Closes SF #403930.

24 years agoMake sure ConfigParser uses .optionxform() consistently; this affects
Fred Drake [Mon, 26 Feb 2001 21:55:34 +0000 (21:55 +0000)]
Make sure ConfigParser uses .optionxform() consistently; this affects
.has_option(), .remove_option(), and .set().

This closes SF tracker #232913.

24 years agoAdd __future__.py to std library, + dull test to verify that assignments
Tim Peters [Mon, 26 Feb 2001 21:14:49 +0000 (21:14 +0000)]
Add __future__.py to std library, + dull test to verify that assignments
therein are of the proper form.

24 years agocleanup_helper(): Added missing "void" type for the function, updated
Fred Drake [Mon, 26 Feb 2001 20:10:51 +0000 (20:10 +0000)]
cleanup_helper():  Added missing "void" type for the function, updated
        comments to reflect reality.

24 years agoThe return value from PyObject_ClearWeakRefs() is no longer meaningful,
Fred Drake [Mon, 26 Feb 2001 18:56:37 +0000 (18:56 +0000)]
The return value from PyObject_ClearWeakRefs() is no longer meaningful,
so make it void.

24 years agoinstancemethod_setattro(): Raise TypeError if an attempt is made to
Barry Warsaw [Mon, 26 Feb 2001 18:09:15 +0000 (18:09 +0000)]
instancemethod_setattro(): Raise TypeError if an attempt is made to
set a function attribute on a method (either bound or unbound).  This
reverts to Python 2.0 behavior that no attributes of the method are
writable, but provides a more informative error message.

24 years agoAdditional tests for current, PEP described semantics:
Barry Warsaw [Mon, 26 Feb 2001 18:07:26 +0000 (18:07 +0000)]
Additional tests for current, PEP described semantics:

- func.__dict__ is None until the first attribute is assigned

- del func.__dict__ is equivalent to func.__dict__ = None

- disallowing assignment to function attribute through unbound method
  (it was always illegal to assign through bound method).

- verifying that setting attribute explicitly on underlying function
  via meth.im_func is okay.

24 years agomain(): Slightly more informative error message when TokenError
Barry Warsaw [Mon, 26 Feb 2001 04:46:53 +0000 (04:46 +0000)]
main(): Slightly more informative error message when TokenError
occurs.  Also, continue processing.

24 years ago(py-parse-state): Teach python-mode how to scan code which follows
Barry Warsaw [Sat, 24 Feb 2001 00:09:17 +0000 (00:09 +0000)]
(py-parse-state): Teach python-mode how to scan code which follows
multi-line list comprehensions.

24 years agoShuffle premature decref; nuke unreachable code block.
Tim Peters [Fri, 23 Feb 2001 22:23:53 +0000 (22:23 +0000)]
Shuffle premature decref; nuke unreachable code block.
Fixes the "debug-build -O test_builtin.py and no test_b2.pyo" crash just
discussed on Python-Dev.

24 years agoHide the ProgressBar before raising KeyboardInterrupt. Not doing so resulted in a...
Jack Jansen [Fri, 23 Feb 2001 22:18:27 +0000 (22:18 +0000)]
Hide the ProgressBar before raising KeyboardInterrupt. Not doing so resulted in a hang on Carbon.

24 years agoTurn on the "multifinder aware" bit. This should always have been on, but was was...
Jack Jansen [Fri, 23 Feb 2001 22:13:07 +0000 (22:13 +0000)]
Turn on the "multifinder aware" bit. This should always have been on, but was was never a problem that it was off until CarbonLib 1.1 (which requires it, for some reason).

24 years agoDo not hide a failure to create a temporary file; if it fails the work
Fred Drake [Fri, 23 Feb 2001 20:04:54 +0000 (20:04 +0000)]
Do not hide a failure to create a temporary file; if it fails the work
will not have been done, and applications need to know that.  Also, do
not print a message about it; the exception is the right thing.

This closes SF bug #133717.

24 years agoMinor adjustments, including markup corrections.
Fred Drake [Fri, 23 Feb 2001 19:15:56 +0000 (19:15 +0000)]
Minor adjustments, including markup corrections.

24 years agoFix extra backslash in example.
Fred Drake [Fri, 23 Feb 2001 19:13:07 +0000 (19:13 +0000)]
Fix extra backslash in example.

24 years agoAnother name.
Fred Drake [Fri, 23 Feb 2001 19:11:45 +0000 (19:11 +0000)]
Another name.

24 years agoFix up the markup in some recently-added portions of the text.
Fred Drake [Fri, 23 Feb 2001 19:10:41 +0000 (19:10 +0000)]
Fix up the markup in some recently-added portions of the text.

24 years agoDescribe -s a little more generically.
Barry Warsaw [Fri, 23 Feb 2001 18:31:40 +0000 (18:31 +0000)]
Describe -s a little more generically.

24 years agosymtable_update_free_vars(), symtable_undo_free(),
Barry Warsaw [Fri, 23 Feb 2001 18:22:59 +0000 (18:22 +0000)]
symtable_update_free_vars(), symtable_undo_free(),
symtable_enter_scope(): Removed some unnecessary backslashes at the
end of lines.  C != Python. :)

24 years agoFix for bug 133489: compiler leaks memory
Jeremy Hylton [Fri, 23 Feb 2001 17:55:27 +0000 (17:55 +0000)]
Fix for bug 133489: compiler leaks memory

Two different but related problems:

1. PySymtable_Free() must explicitly DECREF(st->st_cur), which should
always point to the global symtable entry.  This entry is setup by the
first enter_scope() call, but there is never a corresponding
exit_scope() call.

Since each entry has a reference to scopes defined within it, the
missing DECREF caused all symtable entries to be leaked.

2. The leak here masked a separate problem with
PySymtableEntry_New().  When the requested entry was found in
st->st_symbols, the entry was returned without doing an INCREF.

And problem c) The ste_children slot was getting two copies of each
child entry, because it was populating the slot on the first and
second passes.  Now only populate on the first pass.

24 years agoPy_Main(): When compiled by Insure (i.e. __INSURE__ is defined), call
Barry Warsaw [Fri, 23 Feb 2001 16:46:39 +0000 (16:46 +0000)]
Py_Main(): When compiled by Insure (i.e. __INSURE__ is defined), call
the internal API function to release the interned strings as the very
last thing before returning status.  This aids in memory use debugging
because it eliminates a huge source of noise from the reports.  This
is never called during normal (non-debugging) use because releasing
the interned strings slows Python's shutdown and isn't necessary
anyway because the system will always reclaim the memory.

24 years ago_Py_ReleaseInternedStrings(): Private API function to decref and
Barry Warsaw [Fri, 23 Feb 2001 16:40:48 +0000 (16:40 +0000)]
_Py_ReleaseInternedStrings(): Private API function to decref and
release the interned string dictionary.  This is useful for memory
use debugging because it eliminates a huge source of noise from the
reports.  Only defined when INTERN_STRINGS is defined.

24 years agoPatch #103899: Don't compile modules configured in Setup. This seems much
Andrew M. Kuchling [Fri, 23 Feb 2001 16:32:32 +0000 (16:32 +0000)]
Patch #103899: Don't compile modules configured in Setup.  This seems much
    simpler than adding a bazillion switches, but means that the makesetup
    method probably can't ever go away completely.  Oh well...

24 years agoPatch #103937: Attempt to get the BSDDB autodetection right (or at least
Andrew M. Kuchling [Fri, 23 Feb 2001 16:27:48 +0000 (16:27 +0000)]
Patch #103937: Attempt to get the BSDDB autodetection right (or at least
    less wrong)

24 years agoCheckin updated version of patch #103933 . As Thomas says, fixes the bugs #131064...
Mark Hammond [Fri, 23 Feb 2001 11:38:38 +0000 (11:38 +0000)]
Checkin updated version of patch #103933 .  As Thomas says, fixes the bugs #131064, #129584, #127722. See the discussion in bug #131064

24 years agoPatch 103928: Correct zlib freeze settings for Win32.
Tim Peters [Fri, 23 Feb 2001 03:45:13 +0000 (03:45 +0000)]
Patch 103928: Correct zlib freeze settings for Win32.

24 years agoWork around the broken formatting of sys.ps1 prompts in running text.
Fred Drake [Thu, 22 Feb 2001 23:15:05 +0000 (23:15 +0000)]
Work around the broken formatting of sys.ps1 prompts in running text.

Move sample sessions to the left margin of the file for consistency;
formatting can adjust the margin if needed.

This closes SF bug #133213.

24 years agocd to the html/ directory to generate the global module index so the links
Fred Drake [Thu, 22 Feb 2001 23:12:37 +0000 (23:12 +0000)]
cd to the html/ directory to generate the global module index so the links
to the module sections are right.

This was also broken when converting to a flat Makefile.

24 years agoThe ACKS file is in the current directory when converted to HTML; this was
Fred Drake [Thu, 22 Feb 2001 23:06:21 +0000 (23:06 +0000)]
The ACKS file is in the current directory when converted to HTML; this was
broken when converting to a flat Makefile.  ;-(

24 years agoRemove entry for soundex module!
Fred Drake [Thu, 22 Feb 2001 23:00:20 +0000 (23:00 +0000)]
Remove entry for soundex module!

24 years ago_PyObject_Dump(): If argument is NULL, print "NULL" instead of
Barry Warsaw [Thu, 22 Feb 2001 22:39:18 +0000 (22:39 +0000)]
_PyObject_Dump(): If argument is NULL, print "NULL" instead of
crashing.

24 years agoIn try_3way_to_rich_compare(), swap the call to default_3way_compare()
Guido van Rossum [Thu, 22 Feb 2001 22:18:04 +0000 (22:18 +0000)]
In try_3way_to_rich_compare(), swap the call to default_3way_compare()
and the test for errors, so that an error in the default compare
doesn't go undetected.  This fixes SF Bug #132933 (submitted by
effbot) -- list.sort doesn't detect comparision errors.

24 years agoSequence indexes are non-negative, not natural (0 is not a natural number).
Fred Drake [Thu, 22 Feb 2001 21:28:04 +0000 (21:28 +0000)]
Sequence indexes are non-negative, not natural (0 is not a natural number).
Reported by Daniel May <mayds@ecn.purdue.edu>.

De-tabified everywhere.

24 years agoRemove documentation for the soundex module; the module is no longer
Fred Drake [Thu, 22 Feb 2001 21:25:20 +0000 (21:25 +0000)]
Remove documentation for the soundex module; the module is no longer
included with Python.

24 years agoasin micro-optimization suggested in email.
Tim Peters [Thu, 22 Feb 2001 19:51:56 +0000 (19:51 +0000)]
asin micro-optimization suggested in email.

24 years agoWindows: Remove soundex from pythoncore subproject.
Tim Peters [Thu, 22 Feb 2001 19:51:31 +0000 (19:51 +0000)]
Windows:  Remove soundex from pythoncore subproject.

24 years agoMention the removal of soundex.c
Andrew M. Kuchling [Thu, 22 Feb 2001 15:53:21 +0000 (15:53 +0000)]
Mention the removal of soundex.c