Commit Graph

3149 Commits

Author SHA1 Message Date
Georg Brandl 4235e6f111 #3968: fix missing update() call in end_fill(). 2008-09-26 07:17:03 +00:00
Benjamin Peterson d1c7d07d67 make sure to give a 'as' and 'with' parser warning even after import statements #3936 2008-09-25 20:46:05 +00:00
Thomas Heller 8e97ea9c6b Fix issue #3547: ctypes is confused by bitfields of varying integer types
Reviewed by Fredrik Lundh and Skip Montanaro.

Backport from trunk.
2008-09-24 19:00:21 +00:00
Gregory P. Smith a7a94a0a21 Backport r66141 from trunk:
- Issue #3678: Correctly pass LDFLAGS and LDLAST to the linker on shared
   library targets in the Makefile.
2008-09-22 00:22:44 +00:00
Benjamin Peterson c610afbca4 backport r66496: integer overflow in _hashopenssl #3886 2008-09-18 01:27:26 +00:00
Gregory P. Smith cae7f886e3 rerun autoconf after r66288, add the Misc/NEWS entry. 2008-09-07 06:44:12 +00:00
Hirokazu Yamamoto 6477350b53 Add NEWS 2008-09-04 14:26:56 +00:00
Amaury Forgeot d'Arc afa0d58a2d Issue #3751: str.rpartition would perform a left-partition when called with
a unicode argument.

Backport of r66119
2008-09-01 20:05:08 +00:00
Guido van Rossum f5150f375d News for the imageop/rgbimg changes. 2008-08-20 14:56:24 +00:00
Thomas Heller 275e229ee2 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.
2008-08-19 17:17:37 +00:00
Amaury Forgeot d'Arc 22679b869c 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
2008-08-18 19:33:42 +00:00
Gregory P. Smith 7a076bed4c 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.
2008-08-17 23:06:19 +00:00
Gregory P. Smith 5e8dc97a09 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.
2008-08-17 23:01:11 +00:00
Hirokazu Yamamoto 1d63a45d0d I forgot to update NEWS. 2008-08-17 09:49:10 +00:00
Georg Brandl e71268f93f #3205: bz2 iterator fails silently on MemoryError
(backport from r65609)
2008-08-12 08:47:02 +00:00
Georg Brandl 1576bab042 #3134: shutil referenced undefined WindowsError symbol
(backport from r65644)
2008-08-12 08:39:33 +00:00
Georg Brandl 45c33ce62d - Issue #3537: Fix an assertion failure when an empty but presized dict
object was stored in the freelist. (backport from r65637.)
2008-08-11 09:13:26 +00:00
Robert Schuppenies 78813dccd8 Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
menu entries were not deleted.

Backport from trunk r65622.
2008-08-10 11:19:25 +00:00
Gregory P. Smith 7641b1c943 (backport from trunk r64756)
Issue #2113: Fix error in subprocess.Popen if the select system call is
interrupted by a signal.
2008-08-04 03:23:25 +00:00
Gregory P. Smith 03e5182dca (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.
2008-08-04 00:45:34 +00:00
Gregory P. Smith 76f5d1419f (backport trunk r65151)
Issue #3120: On 64-bit Windows the subprocess module was truncating handles.
2008-08-04 00:19:27 +00:00
Gregory P. Smith b4bc9b9192 (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.
2008-08-04 00:15:54 +00:00
Martin v. Löwis c7af7f36a6 Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap
Tcl command objects.
Backport of r65399.
2008-08-02 07:21:06 +00:00
Neal Norwitz 4f3be8a0a9 Security patches from Apple: prevent int overflow when allocating memory 2008-07-31 17:08:14 +00:00
Neal Norwitz 83ac0144fa 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.
2008-07-28 05:06:20 +00:00
Antoine Pitrou c8e4bed1c5 #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions 2008-07-25 19:00:48 +00:00
Mark Dickinson ab396e07cc Issue #3360: Fix incorrect parsing of '020000000000.0'.
This is a backport of r65005.
2008-07-16 11:04:17 +00:00
Brett Cannon ff931573ce Backport of 64903. 2008-07-13 01:20:19 +00:00
Gregory P. Smith f8f30fad4d 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.
2008-07-06 04:04:07 +00:00
Brett Cannon 6d7f9375a5 Backport of r64677. 2008-07-02 22:08:29 +00:00
Amaury Forgeot d'Arc b15bdf7f7a #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.
2008-07-01 20:59:49 +00:00
Amaury Forgeot d'Arc ceda6a67ce #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
2008-07-01 20:52:56 +00:00
Amaury Forgeot d'Arc 3255e134fe 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
2008-06-16 19:22:42 +00:00
Raymond Hettinger 75ee9eb9c6 Issue #3116 and #1792: Fix quadratic behavior in marshal.dumps(). 2008-06-16 01:49:18 +00:00
Gregory P. Smith 9aa040d4ab - 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.
2008-06-02 00:07:25 +00:00
Gregory P. Smith 26660401c0 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.
2008-06-01 23:44:46 +00:00
Martin v. Löwis 5212da1b96 Patch #2111: Avoid mmap segfault when modifying a PROT_READ block. 2008-05-23 14:30:44 +00:00
Gregory P. Smith 0812de63c2 fix issue2858: potential memory corruption when any of the bsddb.db.*
constructors raised an exception.  backportes from trunk c63403.
2008-05-17 06:46:39 +00:00
Thomas Heller f3bb28395f Issue #2682: ctypes callback functions no longer contain a cyclic
reference to themselves.

Backport from trunk.
2008-04-25 19:55:19 +00:00
Amaury Forgeot d'Arc 8d904c3981 Issue #2670: urllib2.build_opener() failed when two handlers
derive the same default base class.

Backport of r62463.
2008-04-22 21:17:18 +00:00
Guido van Rossum aa975432d4 - 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.)
2008-04-10 22:43:58 +00:00
Gregory P. Smith 14acde30f6 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.
2008-04-09 23:41:13 +00:00
Gregory P. Smith 3782da4e0a Add a note about the zlib.decompressobj().flush() fix. 2008-04-09 18:17:13 +00:00
Georg Brandl d9f1da0f22 Backport #1442: report exception when startup file cannot be run. 2008-03-29 01:50:46 +00:00
Amaury Forgeot d'Arc 8432d86b9f 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
2008-03-28 20:45:42 +00:00
Amaury Forgeot d'Arc 198e353735 Issue2495: tokenize.untokenize did not insert space between two consecutive string literals:
"" "" becomes """", which is invalid code.

Backport of r61979.
2008-03-27 23:41:59 +00:00
Mark Dickinson bfdbfd4d91 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).
2008-03-25 18:58:13 +00:00
Mark Dickinson 26c25d9f64 Decimal.sqrt(0) failed when the context was not
explicitly supplied.
2008-03-25 14:35:25 +00:00
Amaury Forgeot d'Arc a79e05097b #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
2008-03-24 21:16:28 +00:00
Georg Brandl d9b9d680d5 Issue #2432: give DictReader the dialect and line_num attributes
advertised in the docs.
 (backport from r61712)
2008-03-21 20:01:55 +00:00