]> granicus.if.org Git - python/log
python
16 years agoBackport r66813: per Greg Ward, optparse is no longer being externally maintained.
Andrew M. Kuchling [Fri, 14 Nov 2008 00:17:12 +0000 (00:17 +0000)]
Backport r66813: per Greg Ward, optparse is no longer being externally maintained.

16 years agoBackport r66804: #1415508 from Rocky Bernstein: add docstrings for enable_intersperse...
Andrew M. Kuchling [Fri, 14 Nov 2008 00:11:12 +0000 (00:11 +0000)]
Backport r66804: #1415508 from Rocky Bernstein: add docstrings for enable_interspersed_args(), disable_interspersed_args()

16 years agoIssue #3774: Fixed an error when create a Tkinter menu item without command
Hirokazu Yamamoto [Mon, 3 Nov 2008 18:18:08 +0000 (18:18 +0000)]
Issue #3774: Fixed an error when create a Tkinter menu item without command
and then remove it. Written by Guilherme Polo (gpolo). Backport of r67082.

16 years agobackport r67077 from the trunk: parser module now correctly validates relative imports
Benjamin Peterson [Mon, 3 Nov 2008 15:19:35 +0000 (15:19 +0000)]
backport r67077 from the trunk: parser module now correctly validates relative imports

16 years agoIssue #4176: Pickle would crash the interpreter when a __reduce__ function
Amaury Forgeot d'Arc [Thu, 30 Oct 2008 21:40:05 +0000 (21:40 +0000)]
Issue #4176: Pickle would crash the interpreter when a __reduce__ function
does not return an iterator for the 4th and 5th items.
(sequence-like and mapping-like state)

Backport of r67049.

16 years agoModify ctypes types with 'official' functions. Backport from trunk,
Thomas Heller [Sat, 18 Oct 2008 21:33:44 +0000 (21:33 +0000)]
Modify ctypes types with 'official' functions.  Backport from trunk,
snv rev 59943 and 59946.

16 years agobackport a fix for setup.py's -R
Benjamin Peterson [Thu, 16 Oct 2008 18:58:19 +0000 (18:58 +0000)]
backport a fix for setup.py's -R

16 years agoIssue #4046: Backport of issue #3312's patch: fixes two crashes in the sqlite3
Gerhard Häring [Wed, 8 Oct 2008 08:45:16 +0000 (08:45 +0000)]
Issue #4046: Backport of issue #3312's patch: fixes two crashes in the sqlite3
module.

16 years agoFix a refleak introduced by r66678 (backport of r66700).
Brett Cannon [Tue, 30 Sep 2008 17:47:50 +0000 (17:47 +0000)]
Fix a refleak introduced by r66678 (backport of r66700).

16 years agobackport r66689: imageop could segfault due to poor argument validation
Benjamin Peterson [Tue, 30 Sep 2008 01:46:48 +0000 (01:46 +0000)]
backport r66689: imageop could segfault due to poor argument validation

16 years agoFix issue #3547 for MingW, update comments (backport from trunk).
Thomas Heller [Mon, 29 Sep 2008 20:04:02 +0000 (20:04 +0000)]
Fix issue #3547 for MingW, update comments (backport from trunk).

16 years agoBackport of r66677: _lsprof crasher when a bad external timer is used during
Brett Cannon [Mon, 29 Sep 2008 03:57:24 +0000 (03:57 +0000)]
Backport of r66677: _lsprof crasher when a bad external timer is used during
garbage collection of a Profiler object.

16 years ago#3967: Correct a crash in count() and find() methods of string-like objects.
Amaury Forgeot d'Arc [Fri, 26 Sep 2008 22:46:01 +0000 (22:46 +0000)]
#3967: Correct a crash in count() and find() methods of string-like objects.
For example:
   "".count("xxxx", sys.maxint, 0)

Backport of r66631.

16 years ago#3968: fix missing update() call in end_fill().
Georg Brandl [Fri, 26 Sep 2008 07:17:03 +0000 (07:17 +0000)]
#3968: fix missing update() call in end_fill().

16 years ago#3969: fix typo in turtle.py.
Georg Brandl [Fri, 26 Sep 2008 07:14:57 +0000 (07:14 +0000)]
#3969: fix typo in turtle.py.

16 years agomake sure to give a 'as' and 'with' parser warning even after import statements ...
Benjamin Peterson [Thu, 25 Sep 2008 20:46:05 +0000 (20:46 +0000)]
make sure to give a 'as' and 'with' parser warning even after import statements #3936

16 years agoFix issue #3547: ctypes is confused by bitfields of varying integer types
Thomas Heller [Wed, 24 Sep 2008 19:00:21 +0000 (19:00 +0000)]
Fix issue #3547: ctypes is confused by bitfields of varying integer types

Reviewed by Fredrik Lundh and Skip Montanaro.

Backport from trunk.

16 years agoBackport r66141 from trunk:
Gregory P. Smith [Mon, 22 Sep 2008 00:22:44 +0000 (00:22 +0000)]
Backport r66141 from trunk:
 - Issue #3678: Correctly pass LDFLAGS and LDLAST to the linker on shared
   library targets in the Makefile.

16 years agobackport r66496: integer overflow in _hashopenssl #3886
Benjamin Peterson [Thu, 18 Sep 2008 01:27:26 +0000 (01:27 +0000)]
backport r66496: integer overflow in _hashopenssl #3886

16 years agoIssue #3804: Added test for Issue #2222.
Hirokazu Yamamoto [Mon, 8 Sep 2008 23:10:08 +0000 (23:10 +0000)]
Issue #3804: Added test for Issue #2222.
Reviewed by Benjamin Peterson.

16 years agoreran autoconf
Gregory P. Smith [Sun, 7 Sep 2008 19:26:09 +0000 (19:26 +0000)]
reran autoconf

16 years agobackport r66295 from trunk (small fix to the previous backport)
Gregory P. Smith [Sun, 7 Sep 2008 19:25:37 +0000 (19:25 +0000)]
backport r66295 from trunk (small fix to the previous backport)

16 years agorerun autoconf after r66288, add the Misc/NEWS entry.
Gregory P. Smith [Sun, 7 Sep 2008 06:44:12 +0000 (06:44 +0000)]
rerun autoconf after r66288, add the Misc/NEWS entry.

16 years agobackport r66179 and r66283 from trunk:
Gregory P. Smith [Sun, 7 Sep 2008 06:42:43 +0000 (06:42 +0000)]
backport r66179 and r66283 from trunk:

 - Issue #1204: The configure script now tests for additional libraries
   that may be required when linking against readline.  This fixes issues
   with x86_64 builds on some platforms (a few Linux flavors and OpenBSD).

16 years agoBackport of r66275/r66274 from trunk/py3k. This is the last bit of
Gregory P. Smith [Sun, 7 Sep 2008 01:03:35 +0000 (01:03 +0000)]
Backport of r66275/r66274 from trunk/py3k.  This is the last bit of
the fix for issue 874900 to fix the use of the threading module in a
post-fork python process.  A NEWS entry for this already exists with
the previous Lib/threading commit for this bug.

16 years agoAdd NEWS
Hirokazu Yamamoto [Thu, 4 Sep 2008 14:26:56 +0000 (14:26 +0000)]
Add NEWS

16 years agoIssue #3762: platform.architecture() fails if python is lanched via its symbolic...
Hirokazu Yamamoto [Thu, 4 Sep 2008 11:21:28 +0000 (11:21 +0000)]
Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
Reviewed Amaury Forgeot d'Arc (Backport of r66213)

16 years agoIssue #3751: str.rpartition would perform a left-partition when called with
Amaury Forgeot d'Arc [Mon, 1 Sep 2008 20:05:08 +0000 (20:05 +0000)]
Issue #3751: str.rpartition would perform a left-partition when called with
a unicode argument.

Backport of r66119

16 years agobackport r66093 from trunk.
Gregory P. Smith [Sun, 31 Aug 2008 16:36:21 +0000 (16:36 +0000)]
backport r66093 from trunk.
 issue3715: docstring representation of hex escaped string needs to be double
 escaped.

16 years agolet Windows bots pass on test_threading
Benjamin Peterson [Sat, 23 Aug 2008 21:25:16 +0000 (21:25 +0000)]
let Windows bots pass on test_threading

16 years agoIssue #1342811: Fixed broken patch.
Robert Schuppenies [Fri, 22 Aug 2008 08:20:35 +0000 (08:20 +0000)]
Issue #1342811: Fixed broken patch.

Backport from trunk r65971.

16 years agoReverted r65902. See http://mail.python.org/pipermail/python-checkins/2008-August...
Hirokazu Yamamoto [Wed, 20 Aug 2008 16:13:57 +0000 (16:13 +0000)]
Reverted r65902. See http://mail.python.org/pipermail/python-checkins/2008-August/073116.html

16 years agoNews for the imageop/rgbimg changes.
Guido van Rossum [Wed, 20 Aug 2008 14:56:24 +0000 (14:56 +0000)]
News for the imageop/rgbimg changes.

16 years agoBackport r65900: fixed get_file_system in test_os.py ('path' is unicode on py3k and...
Hirokazu Yamamoto [Wed, 20 Aug 2008 04:20:53 +0000 (04:20 +0000)]
Backport r65900: fixed get_file_system in test_os.py ('path' is unicode on py3k and ansi on trunk)

16 years agoIssue 1179: [CVE-2007-4965] Integer overflow in imageop module.
Guido van Rossum [Tue, 19 Aug 2008 20:57:46 +0000 (20:57 +0000)]
Issue 1179: [CVE-2007-4965] Integer overflow in imageop module.
Also fixes rgbimg module (just before it is removed from 2.6).

16 years agoissue #3554: ctypes.string_at and ctypes.wstring_at must use the
Thomas Heller [Tue, 19 Aug 2008 17:17:37 +0000 (17:17 +0000)]
issue #3554: ctypes.string_at and ctypes.wstring_at must use the
pythonapi calling convention so that the GIL is held and error return
values are checked.

16 years agoIssue #2234: distutils failed with mingw binutils 2.18.50.20080109.
Amaury Forgeot d'Arc [Mon, 18 Aug 2008 19:33:42 +0000 (19:33 +0000)]
Issue #2234: distutils failed with mingw binutils 2.18.50.20080109.
Be less strict when parsing these version numbers,
they don't necessarily follow the python numbering scheme.

Backport of r65834

16 years agoBackport of r64767 from trunk
Gregory P. Smith [Sun, 17 Aug 2008 23:06:19 +0000 (23:06 +0000)]
Backport of r64767 from trunk

Fixes Issue #3309: Fix bz2.BZFile iterator to release its internal lock
properly when raising an exception due to the bz2file being closed.
Prevents a deadlock.

16 years agoBackport of r65032 from trunk
Gregory P. Smith [Sun, 17 Aug 2008 23:01:11 +0000 (23:01 +0000)]
Backport of r65032 from trunk

Fixes Issue #874900: after an os.fork() call the threading module state is cleaned
up in the child process to prevent deadlock and report proper thread counts
if the new process uses the threading module.

16 years agoI forgot to update NEWS.
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:49:10 +0000 (09:49 +0000)]
I forgot to update NEWS.

16 years agoBackport r65745: Issue #2222: Fixed reference leak when occured
Hirokazu Yamamoto [Sun, 17 Aug 2008 09:39:06 +0000 (09:39 +0000)]
Backport  r65745: Issue #2222: Fixed reference leak when occured
os.rename() fails unicode conversion on 2nd parameter. (windows only)

16 years agoIssue #2065: VC6 related fix.
Hirokazu Yamamoto [Thu, 14 Aug 2008 01:24:55 +0000 (01:24 +0000)]
Issue #2065: VC6 related fix.

- PC/VC6/_bsddb.dsp:
    removed '/nodefaultlib:"msvcrt"' to fix linker error.

- PC/VC6/_msi.dsp:
    added new module support.

- PC/VC6/_sqlite3.dsp:
    /D "MODULE_NAME=\"sqlite3\""
    caused extra leading space like
    #define MODULE_NAME " sqlite3"
    so uses
    /D MODULE_NAME=\"sqlite3\"
    instead.

- PC/VC6/python.dsp:
    changed stack size to 2MB to avoid stack overflow on
    some tests.

16 years ago#3205: bz2 iterator fails silently on MemoryError
Georg Brandl [Tue, 12 Aug 2008 08:47:02 +0000 (08:47 +0000)]
#3205: bz2 iterator fails silently on MemoryError
(backport from r65609)

16 years agoBackport r60148 and r65481: sanity checks to avoid infinite loops.
Georg Brandl [Tue, 12 Aug 2008 08:46:02 +0000 (08:46 +0000)]
Backport r60148 and r65481: sanity checks to avoid infinite loops.

16 years ago#3134: shutil referenced undefined WindowsError symbol
Georg Brandl [Tue, 12 Aug 2008 08:39:33 +0000 (08:39 +0000)]
#3134: shutil referenced undefined WindowsError symbol
(backport from r65644)

16 years ago- Issue #3537: Fix an assertion failure when an empty but presized dict
Georg Brandl [Mon, 11 Aug 2008 09:13:26 +0000 (09:13 +0000)]
- Issue #3537: Fix an assertion failure when an empty but presized dict
  object was stored in the freelist. (backport from r65637.)

16 years agoIssue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
Robert Schuppenies [Sun, 10 Aug 2008 11:19:25 +0000 (11:19 +0000)]
Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
menu entries were not deleted.

Backport from trunk r65622.

16 years ago(backport from trunk r64756)
Gregory P. Smith [Mon, 4 Aug 2008 03:23:25 +0000 (03:23 +0000)]
(backport from trunk r64756)
Issue #2113: Fix error in subprocess.Popen if the select system call is
interrupted by a signal.

16 years ago(backport of r61652 and r61665 from trunk)
Gregory P. Smith [Mon, 4 Aug 2008 00:45:34 +0000 (00:45 +0000)]
(backport of r61652 and r61665 from trunk)
Issue #1471: Arguments to fcntl.ioctl are no longer broken on 64-bit OpenBSD
and similar platforms due to sign extension.

16 years ago(backport trunk r65151)
Gregory P. Smith [Mon, 4 Aug 2008 00:19:27 +0000 (00:19 +0000)]
(backport trunk r65151)
Issue #3120: On 64-bit Windows the subprocess module was truncating handles.

16 years ago(backport r65459 from trunk)
Gregory P. Smith [Mon, 4 Aug 2008 00:15:54 +0000 (00:15 +0000)]
(backport r65459 from trunk)
- Issue #1857: subprocess.Popen.poll gained an additional _deadstate keyword
  argument in python 2.5, this broke code that subclassed Popen to include its
  own poll method.  Fixed my moving _deadstate to an _internal_poll method.

16 years agoIssue #799428: Fix Tkinter.Misc._nametowidget to unwrap
Martin v. Löwis [Sat, 2 Aug 2008 07:21:06 +0000 (07:21 +0000)]
Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap
Tcl command objects.
Backport of r65399.

16 years agoSecurity patches from Apple: prevent int overflow when allocating memory
Neal Norwitz [Thu, 31 Jul 2008 17:08:14 +0000 (17:08 +0000)]
Security patches from Apple:  prevent int overflow when allocating memory

16 years agoBackport code from r65182:
Neal Norwitz [Mon, 28 Jul 2008 05:06:20 +0000 (05:06 +0000)]
Backport code from r65182:

Issue #2620: Overflow checking when allocating or reallocating memory
was not always being done properly in some python types and extension
modules.  PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have
all been updated to perform better checks and places in the code that
would previously leak memory on the error path when such an allocation
failed have been fixed.

16 years ago#2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions
Antoine Pitrou [Fri, 25 Jul 2008 19:00:48 +0000 (19:00 +0000)]
#2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions

16 years agoIssue #3360: Fix incorrect parsing of '020000000000.0'.
Mark Dickinson [Wed, 16 Jul 2008 11:04:17 +0000 (11:04 +0000)]
Issue #3360: Fix incorrect parsing of '020000000000.0'.
This is a backport of r65005.

16 years agoLink fix.
Georg Brandl [Wed, 16 Jul 2008 01:46:12 +0000 (01:46 +0000)]
Link fix.

16 years agoBackport of 64903.
Brett Cannon [Sun, 13 Jul 2008 01:20:19 +0000 (01:20 +0000)]
Backport of 64903.

16 years agoBackport r62627 + r62744 from trunk to fix issue 2632.
Gregory P. Smith [Sun, 6 Jul 2008 04:04:07 +0000 (04:04 +0000)]
Backport r62627 + r62744 from trunk to fix issue 2632.
- Issue #2632: Prevent socket.read(bignumber) from over allocating memory
  in the common case when the data is returned from the underlying socket
  in increments much smaller than bignumber.

16 years agoBackport of r64677.
Brett Cannon [Wed, 2 Jul 2008 22:08:29 +0000 (22:08 +0000)]
Backport of r64677.

16 years ago#Issue3088 in-progress: Race condition with instances of classes derived from threadi...
Amaury Forgeot d'Arc [Tue, 1 Jul 2008 20:59:49 +0000 (20:59 +0000)]
#Issue3088 in-progress: Race condition with instances of classes derived from threading.local:

When a thread touches such an object for the first time, a new thread-local __dict__ is created,
and the __init__ method is run.
But a thread switch can occur here; if the other thread touches the same object, it installs another
__dict__; when the first thread resumes, it updates the dictionary of the second...

This is the deep cause of the failures in test_multiprocessing involving "managers" objects.

Backport of r64601.

16 years ago#3242: fix a crash in "print", if sys.stdout is set to a custom object,
Amaury Forgeot d'Arc [Tue, 1 Jul 2008 20:52:56 +0000 (20:52 +0000)]
#3242: fix a crash in "print", if sys.stdout is set to a custom object,
whose write() method installs another sys.stdout.

Backport of r64633

16 years ago#3157: Fix docstrings for cursor methods.
Georg Brandl [Sun, 22 Jun 2008 18:31:30 +0000 (18:31 +0000)]
#3157: Fix docstrings for cursor methods.

16 years agoIssue 3110: Crash with weakref subclass,
Amaury Forgeot d'Arc [Mon, 16 Jun 2008 19:22:42 +0000 (19:22 +0000)]
Issue 3110: Crash with weakref subclass,
seen after a "import multiprocessing.reduction"

An instance of a weakref subclass can have attributes.
If such a weakref holds the only strong reference to the object,
deleting the weakref will delete the object. In this case,
the callback must not be called, because the ref object is being deleted!

Backport of r34309

16 years agoIssue #3116 and #1792: Fix quadratic behavior in marshal.dumps().
Raymond Hettinger [Mon, 16 Jun 2008 01:49:18 +0000 (01:49 +0000)]
Issue #3116 and #1792: Fix quadratic behavior in marshal.dumps().

16 years ago#3117: backport r55087, fixes segfault with lambda (None,): None.
Georg Brandl [Sun, 15 Jun 2008 19:53:12 +0000 (19:53 +0000)]
#3117: backport r55087, fixes segfault with lambda (None,): None.

16 years agoFix tkinter sequence passing. #2906. Backport from r63914.
Georg Brandl [Tue, 3 Jun 2008 10:26:21 +0000 (10:26 +0000)]
Fix tkinter sequence passing. #2906. Backport from r63914.

16 years ago- Issue #2588, #2589: Fix potential integer underflow and overflow
Gregory P. Smith [Mon, 2 Jun 2008 00:07:25 +0000 (00:07 +0000)]
- Issue #2588, #2589: Fix potential integer underflow and overflow
  conditions in the PyOS_vsnprintf C API function.

This is a backport of r63728 and r63734 from trunk.

16 years agoBackport r62724 from trunk. Fixes issue 2791. subprocess.Popen.communicate
Gregory P. Smith [Sun, 1 Jun 2008 23:44:46 +0000 (23:44 +0000)]
Backport r62724 from trunk.  Fixes issue 2791.  subprocess.Popen.communicate
now closes its stdout and stderr fds as soon as it is finished with them.

16 years agoBackport r63776: tkinter fixes.
Georg Brandl [Sat, 31 May 2008 18:34:27 +0000 (18:34 +0000)]
Backport r63776: tkinter fixes.

16 years agoInclude all licenses of the packages that we include.
Martin v. Löwis [Sun, 25 May 2008 12:02:29 +0000 (12:02 +0000)]
Include all licenses of the packages that we include.

16 years agoPatch #2111: Avoid mmap segfault when modifying a PROT_READ block.
Martin v. Löwis [Fri, 23 May 2008 14:30:44 +0000 (14:30 +0000)]
Patch #2111: Avoid mmap segfault when modifying a PROT_READ block.

16 years agofix issue2858: potential memory corruption when any of the bsddb.db.*
Gregory P. Smith [Sat, 17 May 2008 06:46:39 +0000 (06:46 +0000)]
fix issue2858: potential memory corruption when any of the bsddb.db.*
constructors raised an exception.  backportes from trunk c63403.

16 years ago#2803: fix heappush invocation (backport).
Georg Brandl [Sun, 11 May 2008 15:21:42 +0000 (15:21 +0000)]
#2803: fix heappush invocation (backport).

16 years agoBackport of revision 62854
Ronald Oussoren [Thu, 8 May 2008 10:35:13 +0000 (10:35 +0000)]
Backport of revision 62854

16 years agoFix os.walk docstring example - issue2707
Gregory P. Smith [Tue, 6 May 2008 07:06:44 +0000 (07:06 +0000)]
Fix os.walk docstring example - issue2707

16 years agoBackport r61468 from trunk: Improves the text of the IOError raised
Gregory P. Smith [Sat, 3 May 2008 07:12:23 +0000 (07:12 +0000)]
Backport r61468 from trunk: Improves the text of the IOError raised
when open() returns EINVAL.  See issue2158.

16 years agoFix issue 2520 (cannot import macerrors)
Ronald Oussoren [Fri, 2 May 2008 21:54:32 +0000 (21:54 +0000)]
Fix issue 2520 (cannot import macerrors)

16 years agoBackport of revision 62648
Ronald Oussoren [Fri, 2 May 2008 21:46:55 +0000 (21:46 +0000)]
Backport of revision 62648

16 years agoIssue #2682: ctypes callback functions no longer contain a cyclic
Thomas Heller [Fri, 25 Apr 2008 19:55:19 +0000 (19:55 +0000)]
Issue #2682: ctypes callback functions no longer contain a cyclic
reference to themselves.

Backport from trunk.

16 years agoIssue #2670: urllib2.build_opener() failed when two handlers
Amaury Forgeot d'Arc [Tue, 22 Apr 2008 21:17:18 +0000 (21:17 +0000)]
Issue #2670: urllib2.build_opener() failed when two handlers
derive the same default base class.

Backport of r62463.

16 years agoIssue 2665: On Windows, sys.stderr does not contain a valid file when running without...
Amaury Forgeot d'Arc [Mon, 21 Apr 2008 22:42:30 +0000 (22:42 +0000)]
Issue 2665: On Windows, sys.stderr does not contain a valid file when running without a console.
It seems to work, but will fail at the first flush.

This causes IDLE to silently crash when too many warnings are printed.

Backport of r62448.

16 years agoCorrect previous checkin, probably a svn merge issue.
Amaury Forgeot d'Arc [Fri, 11 Apr 2008 00:33:07 +0000 (00:33 +0000)]
Correct previous checkin, probably a svn merge issue.
Now the code is similar to the one in trunk/.

The behavior was funny:
   >>> print (), repr(())
   (), ()
   >>> print (), repr(())
   (), (...)

16 years ago- Issue #1686386: Tuple's tp_repr did not take into account the possibility of
Guido van Rossum [Thu, 10 Apr 2008 22:43:58 +0000 (22:43 +0000)]
- Issue #1686386: Tuple's tp_repr did not take into account the possibility of
  having a self-referential tuple, which is possible from C code.  Nor did
  object's tp_str consider that a type's tp_str could do something that could
  lead to an inifinite recursion.  Py_ReprEnter() and Py_EnterRecursiveCall(),
  respectively, fixed the issues.  (Backport of r58288 from trunk to 2.5.)

16 years agobackport r62271 from trunk.
Gregory P. Smith [Thu, 10 Apr 2008 19:54:13 +0000 (19:54 +0000)]
backport r62271 from trunk.
remove the now obsoleted assertion.

16 years agoBackport r62261 from trunk:
Gregory P. Smith [Wed, 9 Apr 2008 23:41:13 +0000 (23:41 +0000)]
Backport r62261 from trunk:

Prevent PyString_FromStringAndSize() from passing negative sizes on to lower
level memory allocation functions.  Raise a SystemError and return NULL
instead.

16 years agoAdd a note about the zlib.decompressobj().flush() fix.
Gregory P. Smith [Wed, 9 Apr 2008 18:17:13 +0000 (18:17 +0000)]
Add a note about the zlib.decompressobj().flush() fix.

16 years agoMerge r62235 from trunk.
Gregory P. Smith [Wed, 9 Apr 2008 00:26:44 +0000 (00:26 +0000)]
Merge r62235 from trunk.

Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
It tried to allocate negative or zero memory.  That fails.

16 years ago#2525: update tzinfo example.
Georg Brandl [Mon, 7 Apr 2008 18:53:33 +0000 (18:53 +0000)]
#2525: update tzinfo example.

16 years agoFix for Issue2515: Don't crash when trying to fetch data from a closed cursor.
Gerhard Häring [Sun, 6 Apr 2008 11:05:24 +0000 (11:05 +0000)]
Fix for Issue2515: Don't crash when trying to fetch data from a closed cursor.

16 years agoRemove the advertising clause from the BSD license in timing.h.
Guido van Rossum [Tue, 1 Apr 2008 23:59:06 +0000 (23:59 +0000)]
Remove the advertising clause from the BSD license in timing.h.
I have the email trail to prove that George Neville-Neil approved this.
(Backport of r62097.)

16 years agoBackport #1442: report exception when startup file cannot be run.
Georg Brandl [Sat, 29 Mar 2008 01:50:46 +0000 (01:50 +0000)]
Backport #1442: report exception when startup file cannot be run.

16 years agoFix a reference leak found by Georg, when compiling a class nested in another class.
Amaury Forgeot d'Arc [Fri, 28 Mar 2008 20:45:42 +0000 (20:45 +0000)]
Fix a reference leak found by Georg, when compiling a class nested in another class.
Test is run with "regrtest.py -R:: test_compile"

Backport of r62015

16 years agoIssue2495: tokenize.untokenize did not insert space between two consecutive string...
Amaury Forgeot d'Arc [Thu, 27 Mar 2008 23:41:59 +0000 (23:41 +0000)]
Issue2495: tokenize.untokenize did not insert space between two consecutive string literals:
"" "" becomes """", which is invalid code.

Backport of r61979.

16 years agoIssue #2482: Make sure that the coefficient of a Decimal instance
Mark Dickinson [Tue, 25 Mar 2008 18:58:13 +0000 (18:58 +0000)]
Issue #2482:  Make sure that the coefficient of a Decimal instance
is stored as a str instance rather than a unicode instance.
Backported from Python 2.6 (see r61904).

16 years agoDecimal.sqrt(0) failed when the context was not
Mark Dickinson [Tue, 25 Mar 2008 14:35:25 +0000 (14:35 +0000)]
Decimal.sqrt(0) failed when the context was not
explicitly supplied.

16 years ago#1477: ur'\U0010FFFF' used to raise in narrow unicode builds.
Amaury Forgeot d'Arc [Mon, 24 Mar 2008 21:16:28 +0000 (21:16 +0000)]
#1477: ur'\U0010FFFF' used to raise in narrow unicode builds.
Corrected the raw-unicode-escape codec to use UTF-16 surrogates in
this case, like the unicode-escape codec does.

Backport of r61793 and r61853

16 years agoIssue #2432: give DictReader the dialect and line_num attributes
Georg Brandl [Fri, 21 Mar 2008 20:01:55 +0000 (20:01 +0000)]
Issue #2432: give DictReader the dialect and line_num attributes
advertised in the docs.
 (backport from r61712)

16 years agoBack-port of rev 61240 for issue #2238, fixing: Some syntax errors in *args
Sean Reifscheider [Thu, 20 Mar 2008 17:39:31 +0000 (17:39 +0000)]
Back-port of rev 61240 for issue #2238, fixing: Some syntax errors in *args
and **kwargs expressions could give bogus error messages.

16 years agoThe missing NEWS entry for r61542..
Gregory P. Smith [Tue, 18 Mar 2008 19:24:40 +0000 (19:24 +0000)]
The missing NEWS entry for r61542..