]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
23 years agoAdd "runtime_library_dirs = ssl_libs" to the _socket Extension
Barry Warsaw [Mon, 30 Sep 2002 14:42:29 +0000 (14:42 +0000)] 
Add "runtime_library_dirs = ssl_libs" to the _socket Extension
specification so that the proper runtime ld.so path gets compiled into
the extension.  This fixes _socket for Solaris systems with libssl and
libcrypto in non-standard locations and should be fine for other
systems as well.  Closes SF bug #565710.

Forward port candidate for Python 2.3 (I'll work on that).

23 years agoBackport all changes from trunk (all cosmetic).
Guido van Rossum [Mon, 30 Sep 2002 13:52:01 +0000 (13:52 +0000)] 
Backport all changes from trunk (all cosmetic).

23 years agoPatch #596576: Always use cc to link on NetBSD.
Martin v. Löwis [Mon, 30 Sep 2002 11:19:12 +0000 (11:19 +0000)] 
Patch #596576: Always use cc to link on NetBSD.

23 years agoBackport loewis' 1.12:
Michael W. Hudson [Mon, 30 Sep 2002 10:54:15 +0000 (10:54 +0000)] 
Backport loewis' 1.12:

Patch #581705: Catch OSError, termios.error in spawn. 2.2 bugfix candidate.

23 years agoBackport mhammond's 2.14:
Michael W. Hudson [Mon, 30 Sep 2002 10:52:21 +0000 (10:52 +0000)] 
Backport mhammond's 2.14:

Fix bug [ 549731 ] Unicode encoders appears to leak references.

Python 2.2.1 bugfix candidate.

23 years agoBackport mhammond's 1.6:
Michael W. Hudson [Mon, 30 Sep 2002 10:31:13 +0000 (10:31 +0000)] 
Backport mhammond's 1.6:

Patch 574531/Bug 574570 - allow freeze on windows to use the _winreg
extension.

23 years agoPatch #615343: Add HAVE_GETADDRINFO to acconfig.h.
Martin v. Löwis [Mon, 30 Sep 2002 10:10:22 +0000 (10:10 +0000)] 
Patch #615343: Add HAVE_GETADDRINFO to acconfig.h.

23 years agoAllow internal whitespace in keys.
Fred Drake [Fri, 27 Sep 2002 16:34:30 +0000 (16:34 +0000)] 
Allow internal whitespace in keys.
Closes SF bug #583248.

23 years agoBackport Jack's fix for Jaguar.
Michael W. Hudson [Fri, 27 Sep 2002 08:51:20 +0000 (08:51 +0000)] 
Backport Jack's fix for Jaguar.

23 years agobackport patch resulting from discussion on <http://python.org/sf/612111>.
Skip Montanaro [Thu, 26 Sep 2002 21:50:01 +0000 (21:50 +0000)] 
backport patch resulting from discussion on <http://python.org/sf/612111>.

23 years agoBackport of 1.15:
Guido van Rossum [Thu, 26 Sep 2002 20:08:55 +0000 (20:08 +0000)] 
Backport of 1.15:

Oops, must convert hyphens to underscores in keys of aliases dict.

23 years agoPrevious fix depended on the "code cleanup and general bug fix patch" already
Fred Drake [Thu, 26 Sep 2002 19:37:36 +0000 (19:37 +0000)] 
Previous fix depended on the "code cleanup and general bug fix patch" already
being applied.  This is portion of that patch that does not add new
functionality.

23 years agohas_option(): Use the option name transform consistently.
Fred Drake [Thu, 26 Sep 2002 19:23:31 +0000 (19:23 +0000)] 
has_option():  Use the option name transform consistently.
Closes SF bug #561822.

23 years agoBackport of 2.18:
Guido van Rossum [Thu, 26 Sep 2002 16:53:31 +0000 (16:53 +0000)] 
Backport of 2.18:

Patch for the DEC Alpha under Linux, by Lee Busby.

23 years agoDisable big charsets in UCS-4 builds. Works around #599377.
Martin v. Löwis [Thu, 26 Sep 2002 16:41:10 +0000 (16:41 +0000)] 
Disable big charsets in UCS-4 builds. Works around #599377.

23 years agoAdd encoding in LookupError. Fixes #615013.
Martin v. Löwis [Thu, 26 Sep 2002 16:04:31 +0000 (16:04 +0000)] 
Add encoding in LookupError. Fixes #615013.

23 years agoRemove unused output file.
Fred Drake [Thu, 26 Sep 2002 15:53:28 +0000 (15:53 +0000)] 
Remove unused output file.

23 years agoBackport patches for versions 1.33, 1.35, and 1.36 from the trunk:
Fred Drake [Thu, 26 Sep 2002 15:52:59 +0000 (15:52 +0000)] 
Backport patches for versions 1.33, 1.35, and 1.36 from the trunk:

revision 1.36:
If PyXML is installed, there is no Node.allnodes, so that portion of
the test should be skipped if that's the case.

revision 1.35:
Remove duplicate checks of the Node.allnodes variable.

revision 1.33:
Follow PyXML: Remove all prints from successful tests.  This means we can
also drop the output file.

23 years agoFix for PyXML bug #563399, as much as we can implement without relying on
Fred Drake [Thu, 26 Sep 2002 15:24:41 +0000 (15:24 +0000)] 
Fix for PyXML bug #563399, as much as we can implement without relying on
a specific Expat version.
This includes fixing a test that enforced the incorrect result.

23 years agoThe Python 2.2.x version of pyexpat needs more changes to avoid type
Fred Drake [Wed, 25 Sep 2002 22:31:35 +0000 (22:31 +0000)] 
The Python 2.2.x version of pyexpat needs more changes to avoid type
issues with varying versions of Expat; this completes the previous fix
for this version.  (Not relevant for the trunk.)

23 years agoBackport revision 1.6 by jackjansen;
Neal Norwitz [Wed, 25 Sep 2002 21:40:17 +0000 (21:40 +0000)] 
Backport revision 1.6 by jackjansen;
Added include guards and C++ extern "C" {} constructs. Partial fix for #607253.

23 years agoBack out part of previous change.
Neal Norwitz [Wed, 25 Sep 2002 21:26:01 +0000 (21:26 +0000)] 
Back out part of previous change.
Quotes aren't necessary in case statements.  Spotted by Neil Schemenauer.

23 years agoFix SF # 614587, configure.in patch from Tim Rice
Neal Norwitz [Wed, 25 Sep 2002 20:35:57 +0000 (20:35 +0000)] 
Fix SF # 614587, configure.in patch from Tim Rice

Need to quote $GCC in case it isn't set.

23 years agoBackport:
Neal Norwitz [Wed, 25 Sep 2002 19:22:10 +0000 (19:22 +0000)] 
Backport:
Fix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce Atherton

Add a test too.  urljoin() would make file:/tmp/foo instead of file:///tmp/foo

23 years agoFix typo in xreadlines() docstring. This does not apply to the trunk.
Fred Drake [Wed, 25 Sep 2002 18:06:48 +0000 (18:06 +0000)] 
Fix typo in xreadlines() docstring.  This does not apply to the trunk.
Closes SF bug #614542.

23 years agoDump trunk version of httplib.py onto branch.
Michael W. Hudson [Wed, 25 Sep 2002 16:53:17 +0000 (16:53 +0000)] 
Dump trunk version of httplib.py onto branch.

23 years agoAdd yet another alias for ASCII found in the field (on BSD?).
Guido van Rossum [Wed, 25 Sep 2002 16:46:22 +0000 (16:46 +0000)] 
Add yet another alias for ASCII found in the field (on BSD?).

23 years agoBackport of 1.489:
Guido van Rossum [Wed, 25 Sep 2002 15:03:10 +0000 (15:03 +0000)] 
Backport of 1.489:

Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.

23 years agoBackport of 1.111:
Guido van Rossum [Wed, 25 Sep 2002 15:00:40 +0000 (15:00 +0000)] 
Backport of 1.111:

Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.

23 years agobackport jhylton's checkin of
Michael W. Hudson [Wed, 25 Sep 2002 10:32:49 +0000 (10:32 +0000)] 
backport jhylton's checkin of
    revision 1.32 of urllib2.py

Fix from SF patch #527518: proxy config with user+pass authentication.

Bug fix candidate.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Wed, 25 Sep 2002 10:25:14 +0000 (10:25 +0000)] 
backport tim_one's checkin of
    revision 2.36 of binascii.c

Another stab at SF 576327: zipfile when sizeof(long) == 8
binascii_crc32():  The previous patch forced this to return the same
result across platforms.  This patch deals with that, on a 64-bit box,
the *entry* value may have "unexpected" bits in the high four bytes.

Bugfix candidate.

--------

More whitespace cleanup related conflict removal... sigh.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Wed, 25 Sep 2002 10:22:50 +0000 (10:22 +0000)] 
backport tim_one's checkin of
    revision 2.35 of binascii.c

Fix for SF bug #576327: zipfile when sizeof(long) == 8
binascii_crc32():  Make this return a signed 4-byte result across
platforms.  The other way to make this platform-independent would be to
make it return an unsigned unbounded int, but the evidence suggests
other code out there treats it like a signed 4-byte int (e.g., existing
code writing the result with struct.pack "l" format).

Bugfix candidate.

23 years agoOk, read the source this time: PyErr_SetObject() does not steal a reference.
Fred Drake [Wed, 25 Sep 2002 02:33:47 +0000 (02:33 +0000)] 
Ok, read the source this time: PyErr_SetObject() does not steal a reference.

23 years agoAnother try at clarifying what goes into and comes out of Unicode objects.
Fred Drake [Tue, 24 Sep 2002 21:01:07 +0000 (21:01 +0000)] 
Another try at clarifying what goes into and comes out of Unicode objects.

23 years agoRevert Raymond H's checkin. That change depends on a new feature in
Guido van Rossum [Tue, 24 Sep 2002 17:52:05 +0000 (17:52 +0000)] 
Revert Raymond H's checkin.  That change depends on a new feature in
2.3, support for source code encodings, so it shouldn't be backported
(no matter how attractive the checkin msg sounded).

Please, try to *use* IDLE before committing changes!

23 years agobackport of the checkin of revision 1.36 of asyncore.py
Thomas Heller [Tue, 24 Sep 2002 17:44:40 +0000 (17:44 +0000)] 
backport of the checkin of revision 1.36 of asyncore.py

On Windows, select() does not accept empty lists.
Patch suggested by Guido, fixes SF item 611464.

Bugfix candidate, will backport to release22-maint myself.

23 years agobackport of the checkin of revision 2.69 of selectmodule.c
Thomas Heller [Tue, 24 Sep 2002 17:24:25 +0000 (17:24 +0000)] 
backport of the checkin of revision 2.69 of selectmodule.c

On Windows, call WSAGetLastError() to retrieve the error number.

Bugfix candidate, will backport to release22-maint myself.

23 years agoChange version stuff to 2.2.2a0.
Guido van Rossum [Tue, 24 Sep 2002 17:17:38 +0000 (17:17 +0000)] 
Change version stuff to 2.2.2a0.

23 years agoChange the version to 2.2.2a0. (Whether we're going to do a 2.2.2
Guido van Rossum [Tue, 24 Sep 2002 17:14:19 +0000 (17:14 +0000)] 
Change the version to 2.2.2a0.  (Whether we're going to do a 2.2.2
alpha or beta at all isn't clear; but while it's unreleased, I think
a0 is the best indicator we've got.)

23 years agoClarify documentation for PyErr_SetObject() to describe the reference
Fred Drake [Tue, 24 Sep 2002 16:44:56 +0000 (16:44 +0000)] 
Clarify documentation for PyErr_SetObject() to describe the reference
count behavior.

23 years agoBe more careful with the type of the xmlhandlersetter; it takes an
Fred Drake [Tue, 24 Sep 2002 16:25:10 +0000 (16:25 +0000)] 
Be more careful with the type of the xmlhandlersetter; it takes an
XML_Parser, which happens to be a pointer type, not an XML_Parser*.
This generated warnings when compiled with Expat 1.95.5, which no
longer defines XML_Parser to be void*.

23 years agoReplaced this with the 2.3 test_mmap, which contains Windows-specific
Tim Peters [Tue, 24 Sep 2002 16:21:36 +0000 (16:21 +0000)] 
Replaced this with the 2.3 test_mmap, which contains Windows-specific
fixes for the "try to resize it" test (Windows grows the underlying
file then, and that screws up later tests that assume the underlying
file has not changed size, as was true on the box (Linux) the person
who changed this test in 2.2 to begin with tried it on).  Without this
change, test_mmap fails on Windows.  Now it passes again.

23 years agounicode_memchr(): Squashed compiler wng (signed-vs-unsigned comparison).
Tim Peters [Tue, 24 Sep 2002 15:22:30 +0000 (15:22 +0000)] 
unicode_memchr():  Squashed compiler wng (signed-vs-unsigned comparison).

23 years agoRegenerate test_unicodedata output after the change to the UTF-8 codec.
Marc-André Lemburg [Tue, 24 Sep 2002 15:01:01 +0000 (15:01 +0000)] 
Regenerate test_unicodedata output after the change to the UTF-8 codec.

23 years agoBackport the UTF-8 codec from 2.3 and add a work-around to let the
Marc-André Lemburg [Tue, 24 Sep 2002 14:06:55 +0000 (14:06 +0000)] 
Backport the UTF-8 codec from 2.3 and add a work-around to let the
UTF-8 decoder accept broken UTF-8 sequences which encode lone
high surrogates (the pre-2.2.2 versions forgot to generate the
UTF-8 prefix \xed for these).

Fixes SF bug #610783: Lone surrogates cause bad .pyc files.

23 years agoClarify that len() of a Unicode string returns the number of storage units,
Fred Drake [Tue, 24 Sep 2002 13:57:32 +0000 (13:57 +0000)] 
Clarify that len() of a Unicode string returns the number of storage units,
not abstract characters.

23 years agobackport theller's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:56:45 +0000 (11:56 +0000)] 
backport theller's checkin of
    revision 1.74 of marshal.c

Whitespace normalization.

23 years agobackport theller's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:56:15 +0000 (11:56 +0000)] 
backport theller's checkin of
    revision 1.3 of test_marshal.py

Fix SF 588452: debug build crashes on marshal.dumps([128] * 1000).
See there for a description.

Added test case.

Bugfix candidate for 2.2.x, not sure about previous versions:
probably low priority, because virtually no one runs debug builds.

23 years agobackport theller's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:55:54 +0000 (11:55 +0000)] 
backport theller's checkin of
    revision 1.73 of marshal.c

Fix SF 588452: debug build crashes on marshal.dumps([128] * 1000).
See there for a description.

Added test case.

Bugfix candidate for 2.2.x, not sure about previous versions:
probably low priority, because virtually no one runs debug builds.

23 years agobackport jhylton's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:53:34 +0000 (11:53 +0000)] 
backport jhylton's checkin of
    revision 2.87 of cPickle.c

Do more robust test of whether global objects are accessible.

PyImport_ImportModule() is not guaranteed to return a module object.
When another type of object was returned, the PyModule_GetDict() call
return NULL and the subsequent GetItem() seg faulted.

Bug fix candidate.

----------

Once again, whitespace chances scuppered automatic backporting, so
I did this by hand.  Review probably wise -- but I have run make test!

Also incorporates revision 2.88 which was just removing a now unused
declaration.

23 years agobackport nowonder's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:23:05 +0000 (11:23 +0000)] 
backport nowonder's checkin of
    revision 2.265 of bltinmodule.c

date: 2002/08/27 16:58:00;  author: nowonder;  state: Exp;  lines: +1 -1

execfile should call PyErr_SetFromErrnoWithFilename instead of
simply PyErr_SetFromErrno

This closes bug 599163.

23 years agobackport akuchling's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:22:28 +0000 (11:22 +0000)] 
backport akuchling's checkin of
    revision 1.12 of config.py

Include an empty body when checking for a header file

(Bugfix candidate for 2.2, and likely 2.1 as well)

23 years agobackport gvanrossum's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:19:33 +0000 (11:19 +0000)] 
backport gvanrossum's checkin of
    revision 1.57 of pdb.py

date: 2002/09/10 21:57:14;  author: gvanrossum;  state: Exp;  lines: +7 -1
At Jim Fulton's request, increase the maxstring value of _saferepr to
a more reasonable value.

Backport candidate.

23 years agobackport effbot's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:12:05 +0000 (11:12 +0000)] 
backport effbot's checkin of
    revision 1.43 of sre_compile.py

made the code match the comments (1.5.2 compatibility)

23 years agobackport theller's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:11:12 +0000 (11:11 +0000)] 
backport theller's checkin of
    revision 2.102 of abstract.c

Better isinstance error message.

Closes SF patch # 560250.

Bugfix candidate IMO.

23 years agobackport bwarsaw's checkin of
Michael W. Hudson [Tue, 24 Sep 2002 11:08:23 +0000 (11:08 +0000)] 
backport bwarsaw's checkin of
    revision 2.101 of abstract.c

abstract_get_bases(): Clarify exactly what the return values and
states can be for this function, and ensure that only AttributeErrors
are masked.  Any other exception raised via the equivalent of
getattr(cls, '__bases__') should be propagated up.

abstract_issubclass(): If abstract_get_bases() returns NULL, we must
call PyErr_Occurred() to see if an exception is being propagated, and
return -1 or 0 as appropriate.  This is the specific fix for a problem
whereby if getattr(derived, '__bases__') raised an exception, an
"undetected error" would occur (under a debug build).  This nasty
situation was uncovered when writing a security proxy extension type
for the Zope3 project, where the security proxy raised a Forbidden
exception on getattr of __bases__.

PyObject_IsInstance(), PyObject_IsSubclass(): After both calls to
abstract_get_bases(), where we're setting the TypeError if the return
value is NULL, we must first check to see if an exception occurred,
and /not/ mask an existing exception.

Neil Schemenauer should double check that these changes don't break
his ExtensionClass examples (there aren't any test cases for those
examples and abstract_get_bases() was added by him in response to
problems with ExtensionClass).  Neil, please add test cases if
possible!

I belive this is a bug fix candidate for Python 2.2.2.

----

Whitespace normalization made this a pest to backport...

Did a test case ever get added for this?

23 years agoFinish up the random fixes that Raymond started yesterday.
Michael W. Hudson [Tue, 24 Sep 2002 10:27:28 +0000 (10:27 +0000)] 
Finish up the random fixes that Raymond started yesterday.

23 years agoMake test_rfc822 pass again.
Michael W. Hudson [Tue, 24 Sep 2002 09:59:50 +0000 (09:59 +0000)] 
Make test_rfc822 pass again.

23 years agoFix cast from backport.
Marc-André Lemburg [Tue, 24 Sep 2002 09:29:44 +0000 (09:29 +0000)] 
Fix cast from backport.

23 years agoBackport 2.48 from trunk:
Guido van Rossum [Tue, 24 Sep 2002 01:17:41 +0000 (01:17 +0000)] 
Backport 2.48 from trunk:

#544265, Remove warnings for passing const to free()

23 years agoBackported 1.39 and 1.40 from trunk:
Guido van Rossum [Mon, 23 Sep 2002 21:19:44 +0000 (21:19 +0000)] 
Backported 1.39 and 1.40 from trunk:

1.39:
Fix SF bug 610610 (reported by Martijn Pieters, diagnosed by Neal Norwitz).

The switch in Exception__str__ didn't clear the error if
PySequence_Size() raised an exception.  Added a case -1 which clears
the error and falls through to the default case.

1.40:
Two more cases of switch(PySequence_Size()) without checking for case -1.
(Same problem as last checkin for SF bug 610610)
Need to clear the error and proceed.

23 years agoBackport from trunk:
Guido van Rossum [Mon, 23 Sep 2002 21:17:27 +0000 (21:17 +0000)] 
Backport from trunk:

unicodeobject.c 2.169
stringobject.c 2.189

Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.

23 years agoAdd the snake-farm crew.
Guido van Rossum [Mon, 23 Sep 2002 21:04:09 +0000 (21:04 +0000)] 
Add the snake-farm crew.

23 years agoBackport 2.93 from trunk:
Guido van Rossum [Mon, 23 Sep 2002 21:02:33 +0000 (21:02 +0000)] 
Backport 2.93 from trunk:

Insert an overflow check when the sequence repetition count is outside
the range of ints.  The old code would pass random truncated bits to
sq_repeat() on a 64-bit machine.

23 years agoBackport 1.51 and 1.54 from trunk.
Guido van Rossum [Mon, 23 Sep 2002 20:59:28 +0000 (20:59 +0000)] 
Backport 1.51 and 1.54 from trunk.

1.51:
Bug #556025: list(xrange(1e9)) --> seg fault

Close the bug report again -- this time for Cygwin due to a newlib bug.
See the following for the details:

http://sources.redhat.com/ml/newlib/2002/msg00369.html

Note that this commit is only a documentation (i.e., comment) change.

1.54:
The list(xrange(sys.maxint / 4)) test blew up on 64-bit platforms.
Because ob_size is a 32-bit int but sys.maxint is LONG_MAX which is a
64-bit value, there's no way to make this test succeed on a 64-bit
platform.  So just skip it when sys.maxint isn't 0x7fffffff.

23 years agoBackport 2.57 from trunk:
Guido van Rossum [Mon, 23 Sep 2002 20:54:04 +0000 (20:54 +0000)] 
Backport 2.57 from trunk:

(Most of) SF patch 601369 (Christos Georgiou): obmalloc,structmodule:
64bit, big endian (issue 2 only).

This adds a bunch of memcpy calls via a temporary variable to avoid
alignment errors.  That's needed for some platforms.

23 years agoBackport 1.56 and 1.68 from trunk:
Guido van Rossum [Mon, 23 Sep 2002 20:49:43 +0000 (20:49 +0000)] 
Backport 1.56 and 1.68 from trunk:

1.56:
Apply diff3.txt from SF patch http://www.python.org/sf/536241

If a str or unicode method returns the original object,
make sure that for str and unicode subclasses the original
will not be returned.

This should prevent SF bug http://www.python.org/sf/460020
from reappearing.

1.68:
Fix SF bug 599128, submitted by Inyeol Lee: .replace() would do the
wrong thing for a unicode subclass when there were zero string
replacements.  The example given in the SF bug report was only one way
to trigger this; replacing a string of length >= 2 that's not found is
another.  The code would actually write outside allocated memory if
replacement string was longer than the search string.

23 years agoBackport 2.166 from trunk:
Guido van Rossum [Mon, 23 Sep 2002 20:46:52 +0000 (20:46 +0000)] 
Backport 2.166 from trunk:

Fix SF bug 599128, submitted by Inyeol Lee: .replace() would do the
wrong thing for a unicode subclass when there were zero string
replacements.  The example given in the SF bug report was only one way
to trigger this; replacing a string of length >= 2 that's not found is
another.  The code would actually write outside allocated memory if
replacement string was longer than the search string.

23 years agoBackport 1.96 from trunk (because I want Xenofarm to test 2.2.2):
Guido van Rossum [Mon, 23 Sep 2002 20:45:36 +0000 (20:45 +0000)] 
Backport 1.96 from trunk (because I want Xenofarm to test 2.2.2):

Add a bunch of sys.stdout.flush() calls that will hopefully improve
the usability of the output of the Xenofarm builds.

23 years agoBackport:
Raymond Hettinger [Mon, 23 Sep 2002 14:52:40 +0000 (14:52 +0000)] 
Backport:

SF bug 594996:  OverflowError in random.randrange
Loosened the acceptable 'start' and 'stop' arguments so that any
Python (bounded) ints can be used.  So, e.g., randrange(-sys.maxint-1,
sys.maxint) no longer blows up.

23 years agoWhitespace normalization and backport:
Raymond Hettinger [Mon, 23 Sep 2002 14:48:16 +0000 (14:48 +0000)] 
Whitespace normalization and backport:

random.gauss() uses a piece of hidden state used by nothing else,
and the .seed() and .whseed() methods failed to reset it.  In other
words, setting the seed didn't completely determine the sequence of
results produced by random.gauss().  It does now.  Programs repeatedly
mixing calls to a seed method with calls to gauss() may see different
results now.

Bugfix candidate (random.gauss() has always been broken in this way),
despite that it may change results.

23 years agoBackport:
Raymond Hettinger [Mon, 23 Sep 2002 14:37:00 +0000 (14:37 +0000)] 
Backport:

The test for re.engine was misfiring because re.engine is no longer
defined and the default was "pre" instead of "sre".  Give up on 1.5.2
compatibility, hardcode the sre solution.  However, this XXX comment
still applies, AFAIK:
        # XXX This code depends on internals of the regular expression
        # engine!  There's no standard API to do a substitution when you
        # have already found the match.  One should be added.

23 years agoBackport:
Raymond Hettinger [Mon, 23 Sep 2002 14:30:24 +0000 (14:30 +0000)] 
Backport:

Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input.

23 years agoBackport patch: Use ascii_letters to avoid UnicodeErrors.
Raymond Hettinger [Mon, 23 Sep 2002 14:23:15 +0000 (14:23 +0000)] 
Backport patch:  Use ascii_letters to avoid UnicodeErrors.

23 years agoBackport patch #540583: Open MS Help Docs if available.
Raymond Hettinger [Mon, 23 Sep 2002 14:17:15 +0000 (14:17 +0000)] 
Backport patch #540583: Open MS Help Docs if available.

23 years agoBackport:
Raymond Hettinger [Mon, 23 Sep 2002 14:06:24 +0000 (14:06 +0000)] 
Backport:

Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart
indent error

Use // where int division is intended.

23 years agoWarn about binutils 2.13 on Solaris.
Guido van Rossum [Mon, 23 Sep 2002 14:02:44 +0000 (14:02 +0000)] 
Warn about binutils 2.13 on Solaris.

23 years agoBackport patch 543222. Disable script bindings in shell window.
Raymond Hettinger [Mon, 23 Sep 2002 14:01:40 +0000 (14:01 +0000)] 
Backport patch 543222. Disable script bindings in shell window.

23 years agoBackport patches 558535. The standard Windows binding for Edit Select All
Raymond Hettinger [Mon, 23 Sep 2002 13:44:45 +0000 (13:44 +0000)] 
Backport patches 558535.  The standard Windows binding for Edit Select All
is Control-A rather than Alt-A.

23 years agobackport bwarsaw's checkin of
Michael W. Hudson [Mon, 23 Sep 2002 13:40:29 +0000 (13:40 +0000)] 
backport bwarsaw's checkin of
    revision 1.70 of rfc822.py

parseaddr(): Fixed in the same way that Message.getaddrlist() was
fixed (re: SF bug #555035).  Include a unittest.

23 years agobackport bwarsaw's checkin of
Michael W. Hudson [Mon, 23 Sep 2002 13:32:53 +0000 (13:32 +0000)] 
backport bwarsaw's checkin of
    revision 1.17 of test_rfc822.py

parseaddr(): Fixed in the same way that Message.getaddrlist() was
fixed (re: SF bug #555035).  Include a unittest.

23 years agoUpdate canvas before computing width. Draw turtle when done drawing circle.
Martin v. Löwis [Sun, 22 Sep 2002 13:02:10 +0000 (13:02 +0000)] 
Update canvas before computing width. Draw turtle when done drawing circle.
Fixes #612595.

23 years agoBack out multifile.py 1.19 and 1.20. Fixes #514676.
Martin v. Löwis [Sun, 22 Sep 2002 09:03:03 +0000 (09:03 +0000)] 
Back out multifile.py 1.19 and 1.20. Fixes #514676.

23 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Sun, 22 Sep 2002 09:03:03 +0000 (09:03 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release22-maint'.

23 years agoAdd recursion limit to pickling. Fixes #576084.
Martin v. Löwis [Sun, 22 Sep 2002 08:21:45 +0000 (08:21 +0000)] 
Add recursion limit to pickling. Fixes #576084.

23 years agoBackport (the relevant part of) rexec.py 1.41.
Guido van Rossum [Sun, 15 Sep 2002 06:08:27 +0000 (06:08 +0000)] 
Backport (the relevant part of) rexec.py 1.41.

Address SF bug #577530: del __builtins__ breaks out of rexec

Using the suggestion there: add_module() forces __builtin__ back; this
fixes r_exec, r_eval, r_execfile.

This does not mean that rexec is now considered safe!  But for those
willing to take the risk, it's safer than before.  (Note that a safety
analysis of the code module would be wise if you plan to use the
interactive console for real -- I've only ever used it to play with
restricted mode.)

23 years agoSF # 602108 ensure string is null terminated after strncpy
Neal Norwitz [Fri, 13 Sep 2002 14:40:50 +0000 (14:40 +0000)] 
SF # 602108 ensure string is null terminated after strncpy

23 years agoFix typo reported by Paul Clifford.
Fred Drake [Thu, 12 Sep 2002 14:16:31 +0000 (14:16 +0000)] 
Fix typo reported by Paul Clifford.
Note that there is no str.joinfields(), use str.join() instead.

23 years agoRevise text about the level of DOM support, and provide pointers to
Fred Drake [Wed, 11 Sep 2002 22:04:51 +0000 (22:04 +0000)] 
Revise text about the level of DOM support, and provide pointers to
the work of the XML-SIG in the main body of the text.  Incorporates
changes made by Martin von Löwis in revision 1.20 on the trunk.

Modify the markup in a few places to avoid wrapping lines in bad
places, and just general cleanliness.

23 years agoAdd windows-125[678]. Fixes #607302.
Martin v. Löwis [Wed, 11 Sep 2002 16:29:52 +0000 (16:29 +0000)] 
Add windows-125[678]. Fixes #607302.

23 years agoClarify who maintains Tkinter and who maintains Tk.
Fred Drake [Tue, 10 Sep 2002 21:59:44 +0000 (21:59 +0000)] 
Clarify who maintains Tkinter and who maintains Tk.

23 years agoUse = instead of == in test.
Martin v. Löwis [Tue, 10 Sep 2002 09:19:45 +0000 (09:19 +0000)] 
Use = instead of == in test.

23 years agoFix API typo. Closes SF 606216
Raymond Hettinger [Sun, 8 Sep 2002 04:42:16 +0000 (04:42 +0000)] 
Fix API typo.  Closes SF 606216

23 years agoTry to get test to pass on Windows
Neal Norwitz [Sat, 7 Sep 2002 05:58:28 +0000 (05:58 +0000)] 
Try to get test to pass on Windows

23 years agoChange UserDict to IterableUserDict
Raymond Hettinger [Sat, 7 Sep 2002 04:49:09 +0000 (04:49 +0000)] 
Change UserDict to IterableUserDict

23 years agoHave os.environ inherit from the iterable version of UserDict.
Raymond Hettinger [Fri, 6 Sep 2002 19:35:22 +0000 (19:35 +0000)] 
Have os.environ inherit from the iterable version of UserDict.
Closes SF bug 605731.

23 years agoAdded a tutorial note and example regarding the scope of loop variables
Raymond Hettinger [Fri, 6 Sep 2002 18:09:22 +0000 (18:09 +0000)] 
Added a tutorial note and example regarding the scope of loop variables
in a list comprehension.  Includes a justification and a comparision
to regular for-loops.

Closes SF bug 605047.

23 years agoBackport of SF bug # 585792, Invalid mmap crashes Python interpreter
Neal Norwitz [Thu, 5 Sep 2002 22:30:03 +0000 (22:30 +0000)] 
Backport of SF bug # 585792, Invalid mmap crashes Python interpreter

Raise ValueError if user passes a size to mmap which is larger
than the file.

Also need Tim's fix in test_mmap.py, 1.22 which flushes the file
before mmap'ing it.

23 years agoFix typo
Raymond Hettinger [Wed, 4 Sep 2002 15:12:55 +0000 (15:12 +0000)] 
Fix typo

23 years agoFix typo
Raymond Hettinger [Wed, 4 Sep 2002 15:02:53 +0000 (15:02 +0000)] 
Fix typo