]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
22 years agoBackport Patch 659834 checked in by GvR on 2002/12/30 16:25:38
Neal Norwitz [Sat, 29 Mar 2003 22:25:18 +0000 (22:25 +0000)] 
Backport Patch 659834 checked in by GvR on 2002/12/30 16:25:38

Check for readline 2.2 features.  This should make it possible to
compile readline.c again with GNU readline versions 2.0 or 2.1; this
ability was removed in readline.c rev. 2.49.  Apparently the older
versions are still in widespread deployment on older Solaris
installations.  With an older readline, completion behavior is subtly
different (a space is always added).

22 years agoPatch #707701: Expect '??' in events. Fixes #698517.
Martin v. Löwis [Sat, 29 Mar 2003 09:48:12 +0000 (09:48 +0000)] 
Patch #707701: Expect '??' in events. Fixes #698517.

22 years agobackport fix for missing altsep in nt (bug 709428)
Skip Montanaro [Fri, 28 Mar 2003 22:31:41 +0000 (22:31 +0000)] 
backport fix for missing altsep in nt (bug 709428)

22 years agoBackport Tim's checkin 2.218:
Neal Norwitz [Sun, 23 Mar 2003 14:36:50 +0000 (14:36 +0000)] 
Backport Tim's checkin 2.218:
    slot_sq_contains():  This leaked a reference to the result of calling
    __contains__().

22 years agoBackport 2.220,
Neal Norwitz [Sun, 23 Mar 2003 14:32:56 +0000 (14:32 +0000)] 
Backport 2.220,
SF patch #708201, unchecked return value in import.c by Jason Harper

22 years agoSynch the Windows installer with changes in the email package.
Tim Peters [Sat, 22 Mar 2003 02:08:30 +0000 (02:08 +0000)] 
Synch the Windows installer with changes in the email package.

22 years agoBackporting docs for email 2.5
Barry Warsaw [Fri, 21 Mar 2003 21:24:27 +0000 (21:24 +0000)] 
Backporting docs for email 2.5

22 years agoBackporting email 2.5 to Python 2.2 maint branch.
Barry Warsaw [Fri, 21 Mar 2003 21:09:32 +0000 (21:09 +0000)] 
Backporting email 2.5 to Python 2.2 maint branch.

22 years ago- added example of using a comparison function with list.sort(), and
Fred Drake [Thu, 20 Mar 2003 22:20:43 +0000 (22:20 +0000)] 
- added example of using a comparison function with list.sort(), and
  explained the construction of a [(key, value), ...] list as an
  alternative
- backport additional notes on list use from Python 2.3 documentation;
  mostly warnings about what not to rely on

22 years agoSF bug 705836: struct.pack of floats in non-native endian order
Tim Peters [Thu, 20 Mar 2003 18:31:20 +0000 (18:31 +0000)] 
SF bug 705836: struct.pack of floats in non-native endian order

pack_float, pack_double, save_float:  All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits.  At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2.  In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.

22 years ago- backport portions of SF patch #700798: fixes and cleanups for descriptor info
Fred Drake [Thu, 20 Mar 2003 18:22:50 +0000 (18:22 +0000)] 
- backport portions of SF patch #700798: fixes and cleanups for descriptor info
- use a TeX "tie" to prevent word-wrapping in "section x.y"-like text

22 years ago- explain what a UNC path is in the makedirs() description, since
Fred Drake [Thu, 20 Mar 2003 17:42:48 +0000 (17:42 +0000)] 
- explain what a UNC path is in the makedirs() description, since
  they're actually mentioned there

22 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Mon, 17 Mar 2003 18:35:42 +0000 (18:35 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release22-maint'.

22 years agobinascii_a2b_base64: Properly return an empty string if the input was all
Thomas Wouters [Mon, 17 Mar 2003 11:34:43 +0000 (11:34 +0000)] 
binascii_a2b_base64: Properly return an empty string if the input was all
    invalid, rather than returning a string of random garbage of the
    estimated result length. Closes SF patch #703471 by Hye-Shik Chang.

Backport from 2.3.

22 years agoAdd some more Distutil changes
Andrew M. Kuchling [Wed, 12 Mar 2003 14:28:21 +0000 (14:28 +0000)] 
Add some more Distutil changes

22 years agoAdd item
Andrew M. Kuchling [Wed, 12 Mar 2003 14:17:38 +0000 (14:17 +0000)] 
Add item

22 years ago[Backport patch #649762] Fix for asynchat endless loop
Andrew M. Kuchling [Wed, 12 Mar 2003 14:11:00 +0000 (14:11 +0000)] 
[Backport patch #649762] Fix for asynchat endless loop
When the null string is used as the terminator, it used to be the same
as None, meaning "collect all the data".  In the current code, however, it
falls into an endless loop; this change reverts to the old behavior.

22 years agoBackport patch from revision 2.80:
Fred Drake [Thu, 6 Mar 2003 16:27:58 +0000 (16:27 +0000)] 
Backport patch from revision 2.80:
Fix memory leak: free memory storing the content model passed to the
ElementDeclHandler by Expat.
Fixes SF bug #676990.

22 years agoSF bug #697220, string.strip implementation/doc mismatch
Neal Norwitz [Tue, 4 Mar 2003 17:44:34 +0000 (17:44 +0000)] 
SF bug #697220, string.strip implementation/doc mismatch

22 years agoBackported fix to [521782] unreliable file.read() error handling.
Gustavo Niemeyer [Tue, 4 Mar 2003 00:50:24 +0000 (00:50 +0000)] 
Backported fix to [521782] unreliable file.read() error handling.

22 years agoget_completer() takes no args
Neal Norwitz [Sat, 1 Mar 2003 15:19:49 +0000 (15:19 +0000)] 
get_completer() takes no args

22 years ago- Backported SF patch #676342: after using pdb, the readline command
Guido van Rossum [Sat, 1 Mar 2003 02:14:53 +0000 (02:14 +0000)] 
- Backported SF patch #676342: after using pdb, the readline command
  completion was botched.

22 years agoBackport rev. 1.73: Translate spaces in the machine name to underscores
Andrew M. Kuchling [Wed, 26 Feb 2003 22:26:03 +0000 (22:26 +0000)] 
Backport rev. 1.73: Translate spaces in the machine name to underscores

22 years agoPartial backport of 2.11: better error messages on import failures.
Jack Jansen [Tue, 25 Feb 2003 14:20:44 +0000 (14:20 +0000)] 
Partial backport of 2.11: better error messages on import failures.
Fixes #652590.

22 years agoRemoved debug output. Fixes #635570
Jack Jansen [Tue, 25 Feb 2003 14:19:07 +0000 (14:19 +0000)] 
Removed debug output. Fixes #635570

22 years agoBackport:
Guido van Rossum [Mon, 24 Feb 2003 01:23:03 +0000 (01:23 +0000)] 
Backport:
Fix from SF patch #633359 by Greg Chapman for SF bug #610299:
    The problem is in sre_compile.py: the call to
    _compile_charset near the end of _compile_info forgets to
    pass in the flags, so that the info charset is not compiled
    with re.U. (The info charset is used when searching to find
    the first character at which a match could start; it is not
    generated for patterns beginning with a repeat like '\w{1}'.)

22 years agoFix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz [Sun, 23 Feb 2003 23:45:16 +0000 (23:45 +0000)] 
Fix SF bug #691793, Python 2.3a2 build fails on Tru64

22 years agoBackport relevant portions of:
Neal Norwitz [Sun, 23 Feb 2003 23:34:37 +0000 (23:34 +0000)] 
Backport relevant portions of:

Fix SF bug #691793, Python 2.3a2 build fails on Tru64

Need to make sure that preprocessor directives start in first column.
This means we can't indent code which has preprocessor directives,
nor have a space between [ #include for example.

22 years agoPatch #491107: Cygwin setup.py import workaround patch
Jason Tishler [Fri, 21 Feb 2003 12:18:17 +0000 (12:18 +0000)] 
Patch #491107: Cygwin setup.py import workaround patch

Back patched to the 2.2.x branch.

22 years agoBackport 1.38:
Raymond Hettinger [Fri, 21 Feb 2003 07:16:37 +0000 (07:16 +0000)] 
Backport 1.38:
 Fix an old bug in poll().  When a signal is handled while we're
 blocked in select(), this will raise select.error with errno set to
 EINTR.  The except clauses correctly ignores this error, but the rest
 of the logic will then call read() for all objects in select's *input*
 list of read file descriptors.  Then when an object's read_handler()
 is naive, it will call recv() on its socket, which will raise an
 IOError, and then asyncore decides to close the socket.  To fix this,
 we simply return in this case.
 Backport candidate.

Backport 1.40:
 Fix spelling error

22 years agoSpelling error
Raymond Hettinger [Fri, 21 Feb 2003 06:59:07 +0000 (06:59 +0000)] 
Spelling error

22 years agoTypo
Raymond Hettinger [Fri, 21 Feb 2003 06:05:45 +0000 (06:05 +0000)] 
Typo

22 years agoBackport libtime.tex 1.53:
Raymond Hettinger [Fri, 21 Feb 2003 05:59:16 +0000 (05:59 +0000)] 
Backport libtime.tex 1.53:

    Fixed longstanding bug in the description of strftime's %W code.

22 years agoBackport 1.7: Clarify when a read-only object is created.
Raymond Hettinger [Fri, 21 Feb 2003 04:22:47 +0000 (04:22 +0000)] 
Backport 1.7:  Clarify when a read-only object is created.

22 years agoBackport 1.45: Failed module import was dumping to the console instead
Raymond Hettinger [Fri, 21 Feb 2003 04:18:32 +0000 (04:18 +0000)] 
Backport 1.45:  Failed module import was dumping to the console instead
of creating a nice dialog window.

22 years agoSF bug #685775: turtle circle() documentation error
Raymond Hettinger [Fri, 21 Feb 2003 03:42:28 +0000 (03:42 +0000)] 
SF bug #685775: turtle circle() documentation error

22 years agoBackport of rev 2.199 from trunk.
Guido van Rossum [Wed, 19 Feb 2003 03:52:47 +0000 (03:52 +0000)] 
Backport of rev 2.199 from trunk.

PyObject_Generic{Get,Set}Attr:

Don't access tp_descr_{get,set} of a descriptor without checking the
flag bits of the descriptor's type.  While we know that the main type
(the type of the object whose attribute is being accessed) has all the
right flag bits (or else PyObject_Generic{Get,Set}Attr wouldn't be
called), we don't know that for its class attributes!

22 years agoBackport of rev 2.199 from trunk.
Guido van Rossum [Wed, 19 Feb 2003 03:21:21 +0000 (03:21 +0000)] 
Backport of rev 2.199 from trunk.

PyObject_Generic{Get,Set}Attr:

Don't access tp_descr_{get,set} of a descriptor without checking the
flag bits of the descriptor's type.  While we know that the main type
(the type of the object whose attribute is being accessed) has all the
right flag bits (or else PyObject_Generic{Get,Set}Attr wouldn't be
called), we don't know that for its class attributes!

22 years agoFix SF bug #687655, String formatting conversions misleading
Neal Norwitz [Mon, 17 Feb 2003 18:59:54 +0000 (18:59 +0000)] 
Fix SF bug #687655, String formatting conversions misleading

22 years agobackporting Fred's doc fix.
Skip Montanaro [Fri, 14 Feb 2003 06:46:24 +0000 (06:46 +0000)] 
backporting Fred's doc fix.

22 years agoadd missing description of os.extsep
Skip Montanaro [Fri, 14 Feb 2003 05:46:52 +0000 (05:46 +0000)] 
add missing description of os.extsep

22 years agoBackport 2.217 and 2.218:
Guido van Rossum [Thu, 13 Feb 2003 17:06:02 +0000 (17:06 +0000)] 
Backport 2.217 and 2.218:
Provide access to the import lock, fixing SF bug #580952.  This is
mostly from SF patch #683257, but I had to change unlock_import() to
return an error value to avoid fatal error.

22 years agoBackport SF #660455 fix.
Guido van Rossum [Wed, 12 Feb 2003 19:09:45 +0000 (19:09 +0000)] 
Backport SF #660455 fix.

22 years agoBackport: Add more missing PyErr_NoMemory() after failled memory allocs
Neal Norwitz [Tue, 11 Feb 2003 23:19:35 +0000 (23:19 +0000)] 
Backport: Add more missing PyErr_NoMemory() after failled memory allocs

22 years agoSF bug 684667: Modules/selectmodule.c returns NULL without exception set.
Tim Peters [Tue, 11 Feb 2003 18:05:44 +0000 (18:05 +0000)] 
SF bug 684667: Modules/selectmodule.c returns NULL without exception set.
Backport of fix from head.

22 years agoBackport 1.16: Fix printing plural (s or "").
Guido van Rossum [Mon, 10 Feb 2003 20:48:19 +0000 (20:48 +0000)] 
Backport 1.16: Fix printing plural (s or "").

22 years agoPartial backport for changes to fix SF bug #678518 (assert & global).
Neal Norwitz [Mon, 10 Feb 2003 01:57:51 +0000 (01:57 +0000)] 
Partial backport for changes to fix SF bug #678518 (assert & global).

22 years agoFix SF bug #642168, help() fails for some builtin topics
Neal Norwitz [Fri, 7 Feb 2003 20:51:20 +0000 (20:51 +0000)] 
Fix SF bug #642168, help() fails for some builtin topics

Fix pydoc when doing help for:  and, or, not, UNICODE.

22 years agoSF patch #682514, mmapmodule.c write fix for LP64 executables
Neal Norwitz [Fri, 7 Feb 2003 19:46:44 +0000 (19:46 +0000)] 
SF patch #682514, mmapmodule.c write fix for LP64 executables

Make length an int so we get the right value from
PyArg_ParseTuple(args, "s#", &str, &length)

22 years agoBUILDEXE setting in out-of-tree builds
Skip Montanaro [Fri, 7 Feb 2003 15:59:28 +0000 (15:59 +0000)] 
BUILDEXE setting in out-of-tree builds

22 years agobackport of a tiny part of patch 557719 - just enough to allow the BUILDEXE
Skip Montanaro [Fri, 7 Feb 2003 15:54:52 +0000 (15:54 +0000)] 
backport of a tiny part of patch 557719 - just enough to allow the BUILDEXE
Makefile variable to be set properly when doing out-of-tree builds.

22 years agoFix SF bug #675259, os.environ leaks under FreeBSD and Mac OS X
Neal Norwitz [Fri, 7 Feb 2003 02:29:01 +0000 (02:29 +0000)] 
Fix SF bug #675259, os.environ leaks under FreeBSD and Mac OS X

Even with the extra work to cleanup the env, *BSD still leaks.  Add a note.

22 years agoUpdate to better reflect the usage of struct_time instances throughout;
Fred Drake [Tue, 4 Feb 2003 15:13:25 +0000 (15:13 +0000)] 
Update to better reflect the usage of struct_time instances throughout;
continuing to call these "time tuples" is misleading at best.
Closes SF bug #671731; backported from rev 1.55.

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:59:59 +0000 (19:59 +0000)] 
backport:

revision 2.196
date: 2002/12/07 21:39:16;  author: tim_one;  state: Exp;  lines: +27 -28
slot_nb_nonzero():  Another leak uncovered by the sandbox datetime
tests.  I found the logic too confusing to follow here, so rewrote more
than was likely absolutely necessary.

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:38:19 +0000 (19:38 +0000)] 
backport:

revision 1.10
date: 2002/10/29 19:08:29;  author: gvanrossum;  state: Exp;  lines: +27 -0
Added test for this fix to classobject.c:

Since properties are supported here, is possible that
instance_getattr2() raises an exception.  Fix all code that made this
assumption.

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:37:32 +0000 (19:37 +0000)] 
backport:

revision 2.164
date: 2002/10/29 18:36:40;  author: gvanrossum;  state: Exp;  lines: +12 -13
Since properties are supported here, is possible that
instance_getattr2() raises an exception.  Fix all code that made this
assumption.

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:34:40 +0000 (19:34 +0000)] 
backport:

revision 1.14
date: 2003/01/29 14:20:23;  author: mwh;  state: Exp;  lines: +5 -0
Teach the parsermodule about floor division.  Fixes

[ 676521 ] parser module validation failure

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:34:14 +0000 (19:34 +0000)] 
backport:

revision 2.75
date: 2003/01/29 14:20:22;  author: mwh;  state: Exp;  lines: +2 -0
Teach the parsermodule about floor division.  Fixes

[ 676521 ] parser module validation failure

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:26:25 +0000 (19:26 +0000)] 
backport:

revision 1.14
date: 2003/01/15 23:38:15;  author: mhammond;  state: Exp;  lines: +1 -1
Correct docstring for SetValueEx()

revision 1.13
date: 2002/12/20 20:13:35;  author: theller;  state: Exp;  lines: +1 -1
Fix an error message in the _winreg module. The error message referred
to a constant in the 'win32con' module, but this constant is also
defined in the _winreg module itself.

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:25:22 +0000 (19:25 +0000)] 
backport:

revision 1.11
date: 2002/12/18 23:20:39;  author: nnorwitz;  state: Exp;  lines: +6 -2
SF # 654974, fix unchecked return values in structseq

Check return values after memory allocation.

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:24:38 +0000 (19:24 +0000)] 
backport:

revision 1.29
date: 2002/11/21 21:08:39;  author: gvanrossum;  state: Exp;  lines: +14 -8
The _Event class should be more careful with releasing its lock when
interrupted.  A try/finally will do nicely.  Maybe other classes need
this too, but since they manipulate more state it's less clear that
that is always the right thing, and I'm in a hurry.

22 years agoBackport:
Neal Norwitz [Sun, 2 Feb 2003 19:23:13 +0000 (19:23 +0000)] 
Backport:

revision 1.44
date: 2003/01/15 22:45:48;  author: jackjansen;  state: Exp;  lines: +5 -0
Added ismount().

Fixes #661762, bugfix candidate.

22 years agobackports:
Neal Norwitz [Sun, 2 Feb 2003 19:08:58 +0000 (19:08 +0000)] 
backports:

revision 1.127
date: 2003/01/04 02:16:22;  author: rhettinger;  state: Exp;  lines: +1 -1
SF bug #655271: Slightly modify locals() doc

Clarify the operation of locals().

revision 1.125
date: 2002/12/17 01:08:06;  author: nnorwitz;  state: Exp;  lines: +6 -1
Fix SF # 641111, Undocumented side effect of eval

Try to clear up confusion about the current globals being copied
into a globals dict passed to eval().  This wording (more or less)
was suggested in bug report.  It should probably be made clearer.

revision 1.124
date: 2002/12/17 01:02:57;  author: nnorwitz;  state: Exp;  lines: +78 -0
Fix SF #642742, property() builtin not documented

Added doc for functions new to 2.2:  classmethod property staticmethod super
Taken from docstrings.  Could use review.
Hope there wasn't a reason why these shouldn't have been added.

22 years agobackport:
Neal Norwitz [Sun, 2 Feb 2003 19:07:01 +0000 (19:07 +0000)] 
backport:
revision 1.4
date: 2002/12/17 00:40:38;  author: nnorwitz;  state: Exp;  lines: +8 -3
Fix SF # 626275, missing DECREF's in embedding example

Tested w/valgrind, all paths except the return on PyInt_AsLong() failure
I think I got all of these right.

22 years agoBackport:
Neal Norwitz [Sun, 2 Feb 2003 19:06:04 +0000 (19:06 +0000)] 
Backport:
date: 2002/12/06 22:42:13;  author: theller;

Typo: propogate -> propagate

22 years agoRemove references to pages that don't exist anymore.
Jeremy Hylton [Fri, 31 Jan 2003 14:07:31 +0000 (14:07 +0000)] 
Remove references to pages that don't exist anymore.

22 years agobackport:
Neal Norwitz [Tue, 28 Jan 2003 19:40:35 +0000 (19:40 +0000)] 
backport:
Fix SF bug# 676155, RuntimeWarning with tp_compare

Check return value of PyLong_AsDouble(), it can return an error.

22 years agoFix typo reported to python-docs.
Fred Drake [Sat, 25 Jan 2003 03:48:12 +0000 (03:48 +0000)] 
Fix typo reported to python-docs.

22 years agoPartial backport from Python 2.3. Be sure to install the email and
Barry Warsaw [Mon, 20 Jan 2003 02:13:45 +0000 (02:13 +0000)] 
Partial backport from Python 2.3.  Be sure to install the email and
email/test directories.

22 years agoBackport SF # 669553, fix memory (ref) leaks
Neal Norwitz [Sun, 19 Jan 2003 15:48:38 +0000 (15:48 +0000)] 
Backport SF # 669553, fix memory (ref) leaks

22 years agoBackport SF patch #634866: Alex Martelli's corrections to the ref manual.
Raymond Hettinger [Sun, 19 Jan 2003 14:54:08 +0000 (14:54 +0000)] 
Backport SF patch #634866:  Alex Martelli's corrections to the ref manual.

22 years agoBackport 1.40 and 1.41 so that inspect isn't fooled by single line
Raymond Hettinger [Sun, 19 Jan 2003 14:16:19 +0000 (14:16 +0000)] 
Backport 1.40 and 1.41 so that inspect isn't fooled by single line
definitions, pass statements, and lambdas.

22 years agoBackport 1.33 from trunk:
Guido van Rossum [Mon, 13 Jan 2003 21:21:00 +0000 (21:21 +0000)] 
Backport 1.33 from trunk:

Duh.  cmdqueue should be an instance variable, not a class variable.
This was introduced in 1998 in rev. 1.13, where I imported extensive
patches that, I am sad to say, I didn't review as carefully as I
should have.

22 years agoBackport 1.60 from trunk:
Guido van Rossum [Mon, 13 Jan 2003 21:16:24 +0000 (21:16 +0000)] 
Backport 1.60 from trunk:

Duh.  The do_EOF() implementation was bogus.  Make it more like
do_quit() -- but print a blank line first.

22 years agoBackport:
Neal Norwitz [Mon, 13 Jan 2003 20:17:22 +0000 (20:17 +0000)] 
Backport:

Fix SF bug #667147, Segmentation fault printing str subclass

Fix infinite recursion which occurred when printing an object
whose __str__() returned self.

22 years agosupports_unicode_filenames should not have been backported, test___all__ now passed
Neal Norwitz [Mon, 13 Jan 2003 19:29:38 +0000 (19:29 +0000)] 
supports_unicode_filenames should not have been backported, test___all__ now passed

22 years agoBackport Guido's checkins which disabled the bastion tests
Neal Norwitz [Mon, 13 Jan 2003 19:24:05 +0000 (19:24 +0000)] 
Backport Guido's checkins which disabled the bastion tests

22 years agoGet the test to pass again by backporting Guido's checkin 1.173:
Neal Norwitz [Mon, 13 Jan 2003 19:22:44 +0000 (19:22 +0000)] 
Get the test to pass again by backporting Guido's checkin 1.173:
Disable the rexec test now that rexec is out of grace.

22 years agoSF patch 664183 and SF bug 664044: Note that both u'%s' % 'x' and
Raymond Hettinger [Mon, 13 Jan 2003 04:33:36 +0000 (04:33 +0000)] 
SF patch 664183 and SF bug 664044:  Note that both  u'%s' % 'x'  and
'%s' % u'x'  return a unicode object.

22 years agoBackport last change:
Neal Norwitz [Sun, 12 Jan 2003 14:57:53 +0000 (14:57 +0000)] 
Backport last change:
SF #665570, curses causes interpreter crash

The interpreter doesn't crash, but it does call exit() in libncurses.
Add a note to this effect.

22 years agoSince the WH generator never produced zero, it wasn't fair to characterize
Raymond Hettinger [Sat, 11 Jan 2003 23:42:07 +0000 (23:42 +0000)] 
Since the WH generator never produced zero, it wasn't fair to characterize
this as a fix to a long outstanding bug.  Instead, it makes sure that the
methods work as documented with any generator.

22 years agoSF #659228, fix realpath() not being exported from os.path
Neal Norwitz [Fri, 10 Jan 2003 23:51:56 +0000 (23:51 +0000)] 
SF #659228, fix realpath() not being exported from os.path

22 years agoBackport for SF # 659228, 'realpath' function missing from os.path
Neal Norwitz [Fri, 10 Jan 2003 23:47:53 +0000 (23:47 +0000)] 
Backport for SF # 659228, 'realpath' function missing from os.path

22 years agoFix for SF #639945, 64-bit bug on AIX when loading dynamic modules
Neal Norwitz [Fri, 10 Jan 2003 23:34:01 +0000 (23:34 +0000)] 
Fix for SF #639945, 64-bit bug on AIX when loading dynamic modules

22 years agoBackport 2.12: Fix for SF #639945, 64-bit bug on AIX when loading
Neal Norwitz [Fri, 10 Jan 2003 23:32:02 +0000 (23:32 +0000)] 
Backport 2.12:  Fix for SF #639945, 64-bit bug on AIX when loading
dynamic modules

22 years agobackport:
Neal Norwitz [Fri, 10 Jan 2003 21:02:41 +0000 (21:02 +0000)] 
backport:
SF #665913, Fix mmap module core dump with unix

Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.

22 years agoRetrospectively fix code to handle IE's additional characters on certain
Steve Holden [Wed, 8 Jan 2003 21:17:35 +0000 (21:17 +0000)] 
Retrospectively fix code to handle IE's additional characters on certain
web transactions more gracefully (through a fairly ugly hack). See bugs
430610 and 427345.

22 years agoWent through the CVS logs for 2.2 and recorded all the relevant
Guido van Rossum [Tue, 7 Jan 2003 23:10:48 +0000 (23:10 +0000)] 
Went through the CVS logs for 2.2 and recorded all the relevant
fixes.  Not that I'm releasing 2.2.3 tomorrow, but I'd like to be
prepared.

22 years agoSabotage rexec.py and Bastion.py. These are not secure in Python 2.2
Guido van Rossum [Tue, 7 Jan 2003 23:01:21 +0000 (23:01 +0000)] 
Sabotage rexec.py and Bastion.py.  These are not secure in Python 2.2
or 2.3.

22 years agoBackport typeobject.c revision 2.201 plus associated tests from 2.3:
Guido van Rossum [Tue, 7 Jan 2003 21:49:18 +0000 (21:49 +0000)] 
Backport typeobject.c revision 2.201 plus associated tests from 2.3:

Add a refinement to SLOT1BINFULL() that fixes the problem reported in
SF bug #623669: only try (e.g.) __rdiv__ before __div__ if the right
class actually overrides it.

Also backport a test for a feature that broke in 2.3 (__dict__ of a
new-style class with a user-defined metaclass should be a proxy).

22 years agoBackport typeobject.c revision 2.201 plus associated tests from 2.3:
Guido van Rossum [Tue, 7 Jan 2003 21:47:44 +0000 (21:47 +0000)] 
Backport typeobject.c revision 2.201 plus associated tests from 2.3:

Add a refinement to SLOT1BINFULL() that fixes the problem reported in
SF bug #623669: only try (e.g.) __rdiv__ before __div__ if the right
class actually overrides it.

22 years agoBackport 2.58 from trunk (minus the cleanup):
Guido van Rossum [Tue, 7 Jan 2003 20:40:15 +0000 (20:40 +0000)] 
Backport 2.58 from trunk (minus the cleanup):

Fix from Michael Stone for SF bug #660476 and #513033 (bogus thread
state swaps in readline).

22 years agoStrike any hint that from-import-* could ever be reasonable; it's a
Fred Drake [Mon, 6 Jan 2003 16:38:48 +0000 (16:38 +0000)] 
Strike any hint that from-import-* could ever be reasonable; it's a
vile abomination and should be eradicated!

22 years agoCorrect long standing bugs in the methods for random distributions.
Raymond Hettinger [Sat, 4 Jan 2003 09:30:32 +0000 (09:30 +0000)] 
Correct long standing bugs in the methods for random distributions.
The range of u=random() is [0,1), so log(u) and 1/x can fail.
Fix by setting u=1-random() or by reselecting for a usable value.

22 years agoBackport MAL's patch for bug #659709: bogus computation of float length
Raymond Hettinger [Thu, 2 Jan 2003 22:08:39 +0000 (22:08 +0000)] 
Backport MAL's patch for bug #659709: bogus computation of float length

22 years agoDocument that apply() is deprecated. See:
Fred Drake [Thu, 2 Jan 2003 04:54:22 +0000 (04:54 +0000)] 
Document that apply() is deprecated.  See:
http://mail.python.org/pipermail/python-dev/2003-January/031556.html

22 years agoSF Bug 645777: list.extend() works with any iterable and is no longer
Raymond Hettinger [Sun, 29 Dec 2002 05:59:09 +0000 (05:59 +0000)] 
SF Bug 645777:  list.extend() works with any iterable and is no longer
experimental.

22 years agoAdd test for SF #658106. Will backport.
Neal Norwitz [Tue, 24 Dec 2002 15:26:55 +0000 (15:26 +0000)] 
Add test for SF #658106.  Will backport.

22 years agoSort out indentatoin (don't know how that happened).
Michael W. Hudson [Tue, 24 Dec 2002 14:52:49 +0000 (14:52 +0000)] 
Sort out indentatoin (don't know how that happened).

22 years agoFix SF #658106, Setting __class__ to NoneType
Neal Norwitz [Tue, 24 Dec 2002 14:48:41 +0000 (14:48 +0000)] 
Fix SF #658106, Setting __class__ to NoneType

Backport Guido's checkin 2.171:

Disallow class assignment completely unless both old and new are heap
types.  This prevents nonsense like 2.__class__ = bool or
True.__class__ = int.