]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
24 years agoAdded descriptions for some modules that previously did not have any
Fred Drake [Tue, 10 Jul 2001 14:20:20 +0000 (14:20 +0000)] 
Added descriptions for some modules that previously did not have any
information about them, based on comments from Jack Jansen.

24 years agoFix for SF bug #436525, reported by Greg Kochanski:
Thomas Wouters [Mon, 9 Jul 2001 14:34:16 +0000 (14:34 +0000)] 
Fix for SF bug #436525, reported by Greg Kochanski:
The block/unblock thread macros are called 'Py_BLOCK_THREADS' and
'Py_UNBLOCK_THREADS', not 'Py_BEGIN_BLOCK_THREADS' and
'Py_BEGIN_UNBLOCK_THREADS'.

24 years agoSF bug #439104: Tuple richcompares has code-typo.
Tim Peters [Fri, 6 Jul 2001 17:48:47 +0000 (17:48 +0000)] 
SF bug #439104: Tuple richcompares has code-typo.
Symptom:  (1, 2, 3) <= (1, 2) returned 1.
Also an isomorphic error was in the list richcompare code.

24 years agoWhen reading a continuation line, make sure we still use the transformed
Fred Drake [Fri, 6 Jul 2001 17:23:22 +0000 (17:23 +0000)] 
When reading a continuation line, make sure we still use the transformed
name when filling in the internal data structures, otherwise we incorrectly
raise a KeyError.

This fixes SF bug #432369.

24 years agoExplain the exit code for the wait() method, including a reference to
Fred Drake [Fri, 6 Jul 2001 17:18:05 +0000 (17:18 +0000)] 
Explain the exit code for the wait() method, including a reference to
the os.W*() functions used to interpret the return value.

This fixes SF bug #429361.

24 years agoThe fpectl module does not work on Windows, so remove Windows from the
Fred Drake [Thu, 5 Jul 2001 21:20:01 +0000 (21:20 +0000)] 
The fpectl module does not work on Windows, so remove Windows from the
\platform statement.

Also fix a minor style consistency nit in an example.

24 years agoAllow underscores in tag names and quote characters in unquoted attribute
Fred Drake [Thu, 5 Jul 2001 18:22:48 +0000 (18:22 +0000)] 
Allow underscores in tag names and quote characters in unquoted attribute
values.  The change for attribute values matches the way Mozilla and
Navigator view the world, at least.

This closes SF bug #436621.

24 years agoOnly write out one blank line before the request data.
Fred Drake [Wed, 4 Jul 2001 05:18:18 +0000 (05:18 +0000)] 
Only write out one blank line before the request data.
This closes SF patch #419459.

24 years agoMarked the parameters to Stats.print_*() as optional.
Fred Drake [Mon, 2 Jul 2001 21:22:56 +0000 (21:22 +0000)] 
Marked the parameters to Stats.print_*() as optional.

This closes SF bug #438032.

24 years agoAvoid using os.path.normcase() on sys.path elements; doing so causes paths
Fred Drake [Mon, 2 Jul 2001 16:56:09 +0000 (16:56 +0000)] 
Avoid using os.path.normcase() on sys.path elements; doing so causes paths
to be presented in an unfamiliar case on case-preserving filesystems.

This closes SF patch #436173.

24 years agoAdded another name.
Fred Drake [Mon, 2 Jul 2001 15:12:25 +0000 (15:12 +0000)] 
Added another name.

24 years agoUpdate to reflect Python 2.1.1 release planning.
Fred Drake [Mon, 2 Jul 2001 15:11:34 +0000 (15:11 +0000)] 
Update to reflect Python 2.1.1 release planning.

24 years ago2.1.1c1 WIndows fiddling, plus patchlevel.h.
Tim Peters [Mon, 2 Jul 2001 04:31:28 +0000 (04:31 +0000)] 
2.1.1c1 WIndows fiddling, plus patchlevel.h.

24 years agoUse the more conventional "self" as the name of the self parameter in an
Fred Drake [Fri, 29 Jun 2001 17:51:42 +0000 (17:51 +0000)] 
Use the more conventional "self" as the name of the self parameter in an
example.  It actually confused a reader.

24 years agoCorrect a markup error for an accented character.
Fred Drake [Fri, 29 Jun 2001 16:24:47 +0000 (16:24 +0000)] 
Correct a markup error for an accented character.

Reported by Milan Zamazal <pdm@zamazal.org>.

24 years agoRemoved some stray periods, and fix up a number of visible markup
Fred Drake [Fri, 29 Jun 2001 16:22:36 +0000 (16:22 +0000)] 
Removed some stray periods, and fix up a number of visible markup
consistency errors (mostly omitted "()" at the end of function and
method names).

Reported by Milan Zamazal <pdm@zamazal.org>.

24 years agoAnother name.
Fred Drake [Fri, 29 Jun 2001 15:41:45 +0000 (15:41 +0000)] 
Another name.

24 years agoSourceForge bug #437041:
Fred Drake [Fri, 29 Jun 2001 15:41:19 +0000 (15:41 +0000)] 
SourceForge bug #437041:
Use a portable format in the example that creates a timestamp suitable for
use in email, also updating it and the footnote from RFC 822 to RFC 2822.

24 years agoAnother name.
Fred Drake [Fri, 29 Jun 2001 15:01:14 +0000 (15:01 +0000)] 
Another name.

24 years agoSimplify an example based on comment from Thomas Holenstein <thomas@hex.ch>:
Fred Drake [Fri, 29 Jun 2001 15:00:34 +0000 (15:00 +0000)] 
Simplify an example based on comment from Thomas Holenstein <thomas@hex.ch>:
Do not use an extra flag variable to test only once in one subsequent if
statement.

24 years agoBackport Tim's checkin 1.12:
Thomas Wouters [Wed, 27 Jun 2001 15:07:17 +0000 (15:07 +0000)] 
Backport Tim's checkin 1.12:

doctest systematically leaked memory when handling an exception in an
example (an obvious trackback cycle).  Repaired.

24 years agoBackport of Tim's checkin 1.35:
Thomas Wouters [Wed, 27 Jun 2001 14:26:58 +0000 (14:26 +0000)] 
Backport of Tim's checkin 1.35:

SF bug 434186: 0x80000000/2 != 0x80000000>>1
i_divmod:  New and simpler algorithm.  Old one returned gibberish on most
boxes when the numerator was -sys.maxint-1.  Oddly enough, it worked in the
release (not debug) build on Windows, because the compiler optimized away
some tricky sign manipulations that were incorrect in this case.
Makes you wonder <wink> ...

24 years agoBackport of Tim's checkin 2.57:
Thomas Wouters [Wed, 27 Jun 2001 14:24:12 +0000 (14:24 +0000)] 
Backport of Tim's checkin 2.57:

SF bug 434186: 0x80000000/2 != 0x80000000>>1
i_divmod:  New and simpler algorithm.  Old one returned gibberish on most
boxes when the numerator was -sys.maxint-1.  Oddly enough, it worked in the
release (not debug) build on Windows, because the compiler optimized away
some tricky sign manipulations that were incorrect in this case.
Makes you wonder <wink> ...

24 years agoBackport Tim's checkin 2.247:
Thomas Wouters [Wed, 27 Jun 2001 14:13:32 +0000 (14:13 +0000)] 
Backport Tim's checkin 2.247:

SF bug 433228:  repr(list) woes when len(list) big
call_object:  If the object isn't callable, display its type in the error
msg rather than its repr.

24 years agoSet PYTHONHOMEHELP to 2.1
Thomas Wouters [Wed, 27 Jun 2001 14:11:12 +0000 (14:11 +0000)] 
Set PYTHONHOMEHELP to 2.1

24 years agoBackport Tim's checkin 1.26 (patch probably by Michael Hudson, not Hundson):
Thomas Wouters [Wed, 27 Jun 2001 14:07:50 +0000 (14:07 +0000)] 
Backport Tim's checkin 1.26 (patch probably by Michael Hudson, not Hundson):

SF bug 431772:  traceback.print_exc() causes traceback
Patch from Michael Hundson.
format_exception_only() blew up when trying to report a SyntaxError
from a string input (line is None in this case, but it assumed a string).

24 years agoBackport Tim's checkin 2.201:
Thomas Wouters [Wed, 27 Jun 2001 14:04:03 +0000 (14:04 +0000)] 
Backport Tim's checkin 2.201:

SF bug 430991: wrong co_lnotab
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode.  Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some long
overdue docs about this subtle table to compile.c.

24 years agoBackport Tim's checkin 1.20:
Thomas Wouters [Wed, 27 Jun 2001 14:03:30 +0000 (14:03 +0000)] 
Backport Tim's checkin 1.20:

SF bug 430991: wrong co_lnotab
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode.  Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some long
overdue docs about this subtle table to compile.c.

24 years agoBackport Tim's checkin 1.97:
Thomas Wouters [Wed, 27 Jun 2001 14:02:14 +0000 (14:02 +0000)] 
Backport Tim's checkin 1.97:

SF bug 430991: wrong co_lnotab
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode.  Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some long
overdue docs about this subtle table to compile.c.

24 years agoBackport Martin's checkin 2.16:
Thomas Wouters [Wed, 27 Jun 2001 13:52:56 +0000 (13:52 +0000)] 
Backport Martin's checkin 2.16:

Wrap with extern "C". Fixes bug #428419.
Also protect against multiple inclusion.

24 years agoBackport Martin's checkin 1.4 (with minor fix):
Thomas Wouters [Wed, 27 Jun 2001 13:51:36 +0000 (13:51 +0000)] 
Backport Martin's checkin 1.4 (with minor fix):

Fix bug #422702: Make flag argument to open optional, and document it that way.

24 years agoBackport Martin's checkin 1.6:
Thomas Wouters [Wed, 27 Jun 2001 13:45:01 +0000 (13:45 +0000)] 
Backport Martin's checkin 1.6:

Fix bug #422702: Make flag argument to open optional, and document it that way.

24 years agoBackport Guido's checkin 1.4:
Thomas Wouters [Wed, 27 Jun 2001 13:43:51 +0000 (13:43 +0000)] 
Backport Guido's checkin 1.4:

Quick update to the extension mechanism (extend.py is gone, long live
config.txt).

24 years agoBackport Fred's checkin 2.51:
Thomas Wouters [Wed, 27 Jun 2001 13:12:47 +0000 (13:12 +0000)] 
Backport Fred's checkin 2.51:

Add :method info to the PyArg_ParseTuple() format strings for poll objects.

24 years agoBackport Jeremy's checkin 2.57:
Thomas Wouters [Wed, 27 Jun 2001 13:11:09 +0000 (13:11 +0000)] 
Backport Jeremy's checkin 2.57:

vgetargs1() and vgetargskeywords(): Replace uses of PyTuple_Size() and
PyTuple_GetItem() with PyTuple_GET_SIZE() and PyTuple_GET_ITEM().
The code has already done a PyTuple_Check().

24 years agoBackport Jeremy's checkin 2.244:
Thomas Wouters [Wed, 27 Jun 2001 13:09:44 +0000 (13:09 +0000)] 
Backport Jeremy's checkin 2.244:

Add a second special case to the inline function call code in eval_code2().

If we have a PyCFunction (builtin) and it is METH_VARARGS only, load
the args and dispatch to call_cfunction() directly.  This provides a
small speedup for perhaps the most common function calls -- builtins.

24 years agoBackport of Tim's checkin 1.52:
Thomas Wouters [Wed, 27 Jun 2001 13:05:05 +0000 (13:05 +0000)] 
Backport of Tim's checkin 1.52:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

24 years agoBackport of Tim's checkin 2.27:
Thomas Wouters [Wed, 27 Jun 2001 13:04:24 +0000 (13:04 +0000)] 
Backport of Tim's checkin 2.27:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

24 years agoBackport of Tim's checkin 2.111:
Thomas Wouters [Wed, 27 Jun 2001 13:01:54 +0000 (13:01 +0000)] 
Backport of Tim's checkin 2.111:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

24 years agoBackport of Tim's checkin 2.190:
Thomas Wouters [Wed, 27 Jun 2001 13:01:12 +0000 (13:01 +0000)] 
Backport of Tim's checkin 2.190:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

24 years agoBackport Fred's checkin 1.3:
Thomas Wouters [Wed, 27 Jun 2001 11:57:51 +0000 (11:57 +0000)] 
Backport Fred's checkin 1.3:

Write a better synopsis for the Scrap module, and provide a link to
useful documentation on the Scrap Manager.

24 years agoPython 2.1 (and 2.0) -> Python 2.1.1 in the licence text.
Thomas Wouters [Wed, 27 Jun 2001 11:25:48 +0000 (11:25 +0000)] 
Python 2.1 (and 2.0) -> Python 2.1.1 in the licence text.

24 years agoUpdated link to zlib's home page.
Fred Drake [Mon, 25 Jun 2001 15:30:33 +0000 (15:30 +0000)] 
Updated link to zlib's home page.

24 years agoRe-organize a little, clean up some markup.
Fred Drake [Fri, 22 Jun 2001 18:22:10 +0000 (18:22 +0000)] 
Re-organize a little, clean up some markup.

Added some comments about sys.exit(), SystemExit, and preventing restricted
code from exiting the interpreter.

This closes SF bug #434743.

24 years agoCorrected an error in the information on supporting weak references in
Fred Drake [Fri, 22 Jun 2001 17:20:05 +0000 (17:20 +0000)] 
Corrected an error in the information on supporting weak references in
extension types (the docs reflected a development version of the API).

This closes SF bug #435066.

24 years agoAdjust to understand use of either single- or double-quotes to quote
Fred Drake [Fri, 22 Jun 2001 17:17:02 +0000 (17:17 +0000)] 
Adjust to understand use of either single- or double-quotes to quote
attribute values, and make the logic surrounding the platform
annotations just a little easier to read.  Also make the platform
notes appear in the generated page; they were supposed to, but did not.

24 years agoFix & clean up the information about building Python with large file support
Fred Drake [Fri, 22 Jun 2001 16:00:54 +0000 (16:00 +0000)] 
Fix & clean up the information about building Python with large file support
for Linux.

This closes SF bug #434975.

24 years agoSeparate the version number and release status information.
Fred Drake [Fri, 22 Jun 2001 15:52:13 +0000 (15:52 +0000)] 
Separate the version number and release status information.

24 years agoAdd support for the classdesc* environment and the \releaseinfo and
Fred Drake [Fri, 22 Jun 2001 15:51:28 +0000 (15:51 +0000)] 
Add support for the classdesc* environment and the \releaseinfo and
\setreleaseinfo macros added to the CVS head.

24 years agoProperly mark the availability of tempnam() and tmpnam().
Fred Drake [Fri, 22 Jun 2001 15:41:58 +0000 (15:41 +0000)] 
Properly mark the availability of tempnam() and tmpnam().

24 years agoAdded documentation for PyErr_SetFromErrnoWithFilename().
Fred Drake [Thu, 21 Jun 2001 18:56:49 +0000 (18:56 +0000)] 
Added documentation for PyErr_SetFromErrnoWithFilename().

24 years agoAdjust the documents so that the copyright is at the front of the documents
Fred Drake [Thu, 21 Jun 2001 18:52:50 +0000 (18:52 +0000)] 
Adjust the documents so that the copyright is at the front of the documents
and the license statements are at the end.  This is less annoying to readers.

24 years agoMake sure 2.1.1 takes its proper place in the history of Python licenses.
Fred Drake [Thu, 21 Jun 2001 18:51:11 +0000 (18:51 +0000)] 
Make sure 2.1.1 takes its proper place in the history of Python licenses.

24 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Thu, 21 Jun 2001 18:51:11 +0000 (18:51 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release21-maint'.

24 years agoFix my own typo: protect the FLUSHO usage with "#ifdef FLUSHO", not
Fred Drake [Mon, 18 Jun 2001 21:05:04 +0000 (21:05 +0000)] 
Fix my own typo: protect the FLUSHO usage with "#ifdef FLUSHO", not
"#ifndef FLUSHO".

24 years agoApplying this to the 2.1.1 branch:
Guido van Rossum [Mon, 18 Jun 2001 12:34:31 +0000 (12:34 +0000)] 
Applying this to the 2.1.1 branch:

Fix SF bug #433904 (Alex Martelli) - all s_* methods return None only.

24 years agoSpell "#ifdef" as "#ifdef", not "#endif".
Fred Drake [Sat, 16 Jun 2001 20:46:10 +0000 (20:46 +0000)] 
Spell "#ifdef" as "#ifdef", not "#endif".

24 years agoProtect several more uses of constants with #ifdefs; these are necessary on
Thomas Wouters [Fri, 15 Jun 2001 11:58:49 +0000 (11:58 +0000)] 
Protect several more uses of constants with #ifdefs; these are necessary on
(at least) SCO OpenServer 5. Fixes a non-SF-submitted bugreport by Michael
Kent.

24 years agoFix an improperly placed comma.
Fred Drake [Thu, 14 Jun 2001 13:57:49 +0000 (13:57 +0000)] 
Fix an improperly placed comma.

24 years agoIncorporating MAL's bugfix into the 2.1.1 branch:
Guido van Rossum [Tue, 12 Jun 2001 16:29:12 +0000 (16:29 +0000)] 
Incorporating MAL's bugfix into the 2.1.1 branch:

    revision 1.53
    date: 2001/06/12 16:13:51;  author: lemburg;  state: Exp;  lines: +1 -1
    Removed the Python version from the PYTHONHOMEHELP string. It was
    still set to python2.0 ...

24 years agoAdd the appropriate availability annotations for the popen*() family of
Fred Drake [Mon, 11 Jun 2001 18:26:04 +0000 (18:26 +0000)] 
Add the appropriate availability annotations for the popen*() family of
functions -- these are not available on traditional Mac OS platforms.

Corrected the version annotations for the spawn*() functions and related
constants; these were added in Python 1.6, not 1.5.2.

24 years agoFixed parameter order for os.popen2(), os.popen3(), and os.popen(4). Added
Fred Drake [Mon, 11 Jun 2001 15:22:23 +0000 (15:22 +0000)] 
Fixed parameter order for os.popen2(), os.popen3(), and os.popen(4).  Added
a reference to these functions and popen() from the "Process Management"
section.

Based on a suggestion from comp.lang.python.

24 years agoProtect the use of the VWERASE symbol by an #ifdef, it's apparently missing
Thomas Wouters [Mon, 11 Jun 2001 15:21:43 +0000 (15:21 +0000)] 
Protect the use of the VWERASE symbol by an #ifdef, it's apparently missing
on (some versions of ?) AIX.

24 years agoMerge in recent changes from development branch: add warning about being
Fred Drake [Mon, 11 Jun 2001 14:57:07 +0000 (14:57 +0000)] 
Merge in recent changes from development branch:  add warning about being
sure that code only runs once when using the module as both a module and a
script.

24 years agoTypo: "descrition" --> "description"
Fred Drake [Wed, 6 Jun 2001 16:10:38 +0000 (16:10 +0000)] 
Typo:  "descrition" --> "description"

Add reference to the documentation for the Python documentation markup.

Fixed up a couple of descriptions.

This closes SF bug #430627.

24 years agoAdd references to the documentation for the Python documentation markup.
Fred Drake [Wed, 6 Jun 2001 16:09:54 +0000 (16:09 +0000)] 
Add references to the documentation for the Python documentation markup.
Suggested by the comments in SF bug #430627.

24 years agoUpdate a "Programmer's note" about lambda forms and scoping to reflect
Fred Drake [Tue, 5 Jun 2001 02:24:26 +0000 (02:24 +0000)] 
Update a "Programmer's note" about lambda forms and scoping to reflect
the availability of nested scoping in Python 2.1.

Note that this is a slightly different patch than was applied to the trunk
of the development for Python 2.2.

24 years agois -> if in rename description
Skip Montanaro [Mon, 4 Jun 2001 15:30:41 +0000 (15:30 +0000)] 
is -> if in rename description

24 years agoExplained more differences between PyList_SetItem() and PyList_SET_ITEM().
Fred Drake [Sun, 3 Jun 2001 03:16:04 +0000 (03:16 +0000)] 
Explained more differences between PyList_SetItem() and PyList_SET_ITEM().
In particular, the affect on existing list content was not sufficiently
explained.

This closes SF bug #429554.

24 years agoDocument os.getenv().
Fred Drake [Thu, 31 May 2001 20:27:18 +0000 (20:27 +0000)] 
Document os.getenv().
This closes SF bug #429059.

24 years agoSome general cleanup of the threading module documentation, including
Fred Drake [Thu, 31 May 2001 20:24:37 +0000 (20:24 +0000)] 
Some general cleanup of the threading module documentation, including
fixing the reference to Thread.getDeamon() (should be isDaemon()).

This closes SF bug #429070.

24 years agoexpand __all__ to include a bunch of names that should have been there
Skip Montanaro [Thu, 31 May 2001 18:03:22 +0000 (18:03 +0000)] 
expand __all__ to include a bunch of names that should have been there
before.

24 years agoUsers of PySequence_GET_FAST() should get the length of the sequence using
Fred Drake [Tue, 29 May 2001 18:53:11 +0000 (18:53 +0000)] 
Users of PySequence_GET_FAST() should get the length of the sequence using
PySequence_Size(), not PyObject_Size(): the later considers the mapping
methods as well as the sequence methods, which is not needed here.  Either
should be equally fast in this case, but PySequence_Size() offers a better
conceptual match.

24 years agoreadlink() description: Added note that the return value may be either
Fred Drake [Tue, 29 May 2001 18:14:26 +0000 (18:14 +0000)] 
readlink() description:  Added note that the return value may be either
    absolute or relative.

remove(), rename() descriptions:  Give more information about the cross-
    platform behavior of these functions, so single-platform developers
    can be aware of the potential issues when writing portable code.

This closes SF patch #426598.

24 years agoBring the notes on the relationship between __cmp__(), __eq__(), and
Fred Drake [Tue, 29 May 2001 16:06:21 +0000 (16:06 +0000)] 
Bring the notes on the relationship between __cmp__(), __eq__(), and
__hash__() up to date (re: use of objects which define these methods
as dictionary keys).

This closes SF bug #427698.

Migrated comments about supporting __contains__() and the use of the "in"
operator from the development branch.

24 years agoFix typo reported in SF bug #427783.
Fred Drake [Tue, 29 May 2001 15:45:01 +0000 (15:45 +0000)] 
Fix typo reported in SF bug #427783.

24 years agoThe parameter to the listen() method is not optional, but was marked as
Fred Drake [Tue, 29 May 2001 15:39:24 +0000 (15:39 +0000)] 
The parameter to the listen() method is not optional, but was marked as
optional in the documentation.

This closes SF bug #427985.

24 years ago_PyTuple_Resize: guard against PyTuple_New() returning NULL, using Tim's
Thomas Wouters [Tue, 29 May 2001 08:05:01 +0000 (08:05 +0000)] 
_PyTuple_Resize: guard against PyTuple_New() returning NULL, using Tim's
suggestion (modulo style).

24 years ago_PyTuple_Resize: take into account the empty tuple. There can be only one.
Thomas Wouters [Mon, 28 May 2001 13:04:33 +0000 (13:04 +0000)] 
_PyTuple_Resize: take into account the empty tuple. There can be only one.
Instead of raising a SystemError, just create a new tuple of the desired
size.

This fixes (at least) SF bug #420343.

24 years agoAdd a version annotation for splitdrive(); old, but as long as I managed
Fred Drake [Fri, 25 May 2001 16:21:22 +0000 (16:21 +0000)] 
Add a version annotation for splitdrive(); old, but as long as I managed
to end up with the information, it is better recorded than lost.

24 years agoBackport Fred's checkin 1.3:
Thomas Wouters [Wed, 23 May 2001 15:21:50 +0000 (15:21 +0000)] 
Backport Fred's checkin 1.3:

Actually include a synopsis line for the ColorPicker module.

24 years agoBackport Tim's checkin 2.84:
Thomas Wouters [Wed, 23 May 2001 15:07:55 +0000 (15:07 +0000)] 
Backport Tim's checkin 2.84:

SF bug #422121 Insecurities in dict comparison.
Fixed a half dozen ways in which general dict comparison could crash
Python (even cause Win98SE to reboot) in the presence of kay and/or
value comparison routines that mutate the dict during dict comparison.

24 years agoRe-incarnate dead turd of old test_mutants output file.
Thomas Wouters [Wed, 23 May 2001 14:56:36 +0000 (14:56 +0000)] 
Re-incarnate dead turd of old test_mutants output file.

24 years agoNow that the backporting of test_mutants.py worked successfully (Barnevelder
Thomas Wouters [Wed, 23 May 2001 14:55:54 +0000 (14:55 +0000)] 
Now that the backporting of test_mutants.py worked successfully (Barnevelder
chickens work best!) adapt test_mutants to the absense of 'key in dict'.

24 years agoTim's test_mutants test, taken from revision 1.3 (unsure if I used the right
Thomas Wouters [Wed, 23 May 2001 14:52:45 +0000 (14:52 +0000)] 
Tim's test_mutants test, taken from revision 1.3 (unsure if I used the right
dead chicken for CVS to make the connection... lets hope so.)

24 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Wed, 23 May 2001 14:52:45 +0000 (14:52 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release21-maint'.

24 years agoNet result of Tim's checkins to stropmodule.c (2.78, 2.79, 2.80, 2.81),
Thomas Wouters [Wed, 23 May 2001 14:38:53 +0000 (14:38 +0000)] 
Net result of Tim's checkins to stropmodule.c (2.78, 2.79, 2.80, 2.81),
stringobject.c (2.114, 2.115) and test_strop.py (1.11, 1.12). Fixes
'replace' behaviour on systems on which 'malloc(0)' returns NULL (together
with previous checkins) and re-synchs the string-operation code in
stringobject.c and stropmodule.c, with the exception of 'replace', which has
the old semantics in stropmodule but the new semantics in stringobjects.

24 years ago*** empty log message ***
Thomas Wouters [Wed, 23 May 2001 13:36:37 +0000 (13:36 +0000)] 
*** empty log message ***

24 years agoBackport Jeremy's checkins (frameobject.c:2.50, test_scope.py:1.16,
Thomas Wouters [Wed, 23 May 2001 13:26:29 +0000 (13:26 +0000)] 
Backport Jeremy's checkins (frameobject.c:2.50, test_scope.py:1.16,
test_scope:1.8):

SF patch 419176 from MvL; fixed bug 418977
Two errors in dict_to_map() helper used by PyFrame_LocalsToFast().

24 years agoBackport Tim's checkin 2.130:
Thomas Wouters [Wed, 23 May 2001 13:18:30 +0000 (13:18 +0000)] 
Backport Tim's checkin 2.130:

SF bug #422108 - Error in rich comparisons.
Fix a bad (albeit unlikely) return value in try_rich_to_3way_compare().
Also document do_cmp()'s return values.

24 years agoBackport MAL's checkin 1.32:
Thomas Wouters [Wed, 23 May 2001 13:15:03 +0000 (13:15 +0000)] 
Backport MAL's checkin 1.32:

Fix for bug #417030: "print '%*s' fails for unicode string"

24 years agoBackport MAL's checkin 2.105:
Thomas Wouters [Wed, 23 May 2001 13:14:24 +0000 (13:14 +0000)] 
Backport MAL's checkin 2.105:

Fix for bug #417030: "print '%*s' fails for unicode string"

24 years agoNet result of Guido's checkins of object.c (2.125 and 2.126), classobject.c
Thomas Wouters [Wed, 23 May 2001 13:03:13 +0000 (13:03 +0000)] 
Net result of Guido's checkins of object.c (2.125 and 2.126), classobject.c
(2.128) and stringobject.c (2.105), which reworks PyObject_Str() and
PyObject_Repr() so strings and instances aren't special-cased, and
    print >> file, instance
works like expected in all cases.

24 years agoBackport of Tim's checkin 2.177:
Thomas Wouters [Wed, 23 May 2001 12:51:22 +0000 (12:51 +0000)] 
Backport of Tim's checkin 2.177:

SF bug #417093: Case sensitive import: dir and .py file w/ same name
Directory containing
    Spam.py
    spam/__init__.py
Then "import Spam" caused a SystemError, because code checking for
the existence of "Spam/__init__.py" finds it on a case-insensitive
filesystem, but then bails because the directory it finds it in
doesn't match case, and then old code assumed that was still an error
even though it isn't anymore.  Changed the code to just continue
looking in this case (instead of calling it an error).  So
    import Spam
and
    import spam
both work now.

24 years agoBackport Tim's checkin 2.199:
Thomas Wouters [Wed, 23 May 2001 12:46:45 +0000 (12:46 +0000)] 
Backport Tim's checkin 2.199:

Fix buglet reported on c.l.py:  map(fnc, file.xreadlines()) blows up.
Took away map()'s insistence that sequences support __len__, and cleaned
up the convoluted code that made it *look* like it really cared about
__len__ (in fact the old ->len field was only *used* as a flag bit, as
the main loop only looked at its sign bit, setting the field to -1 when
IndexError got raised; renamed the field to ->saw_IndexError instead).

24 years agoBackport of Tim's checkin 2.88:
Thomas Wouters [Wed, 23 May 2001 12:31:25 +0000 (12:31 +0000)] 
Backport of Tim's checkin 2.88:

A different approach to the problem reported in
Patch #419651: Metrowerks on Mac adds 0x itself
C std says %#x and %#X conversion of 0 do not add the 0x/0X base marker.
Metrowerks apparently does.  Mark Favas reported the same bug under a
Compaq compiler on Tru64 Unix, but no other libc broken in this respect
is known (known to be OK under MSVC and gcc).
So just try the damn thing at runtime and see what the platform does.
Note that we've always had bugs here, but never knew it before because
a relevant test case didn't exist before 2.1.

24 years agoBackport Tim's checkin 2.104:
Thomas Wouters [Wed, 23 May 2001 12:30:59 +0000 (12:30 +0000)] 
Backport Tim's checkin 2.104:

A different approach to the problem reported in
Patch #419651: Metrowerks on Mac adds 0x itself
C std says %#x and %#X conversion of 0 do not add the 0x/0X base marker.
Metrowerks apparently does.  Mark Favas reported the same bug under a
Compaq compiler on Tru64 Unix, but no other libc broken in this respect
is known (known to be OK under MSVC and gcc).
So just try the damn thing at runtime and see what the platform does.
Note that we've always had bugs here, but never knew it before because
a relevant test case didn't exist before 2.1.

24 years agoBackport Jeremy's checkin 1.7:
Thomas Wouters [Wed, 23 May 2001 12:15:57 +0000 (12:15 +0000)] 
Backport Jeremy's checkin 1.7:

Fix 2.1 nested scopes crash reported by Evan Simpson

The new test case demonstrates the bug.  Be more careful in
symtable_resolve_free() to add a var to cells or frees only if it
won't be added under some other rule.

XXX Add new assertion that will catch this bug.

24 years agoBackport Jeremy's checkin 1.15:
Thomas Wouters [Wed, 23 May 2001 12:15:17 +0000 (12:15 +0000)] 
Backport Jeremy's checkin 1.15:

Fix 2.1 nested scopes crash reported by Evan Simpson

The new test case demonstrates the bug.  Be more careful in
symtable_resolve_free() to add a var to cells or frees only if it
won't be added under some other rule.

XXX Add new assertion that will catch this bug.

24 years agoBackport Jeremy's checkin 2.198:
Thomas Wouters [Wed, 23 May 2001 12:11:35 +0000 (12:11 +0000)] 
Backport Jeremy's checkin 2.198:

Fix 2.1 nested scopes crash reported by Evan Simpson

The new test case demonstrates the bug.  Be more careful in
symtable_resolve_free() to add a var to cells or frees only if it
won't be added under some other rule.

XXX Add new assertion that will catch this bug.