Mark Dickinson
3f122784a3
Issue #4084 : fix bug in handling of NaNs in Decimal.max, Decimal.min,
...
Decimal.max_mag and Decimal.min_mag.
2008-12-11 09:06:49 +00:00
Andrew M. Kuchling
2443efb7ed
#4259 : update the URL pattern for module documentation
2008-12-11 02:09:36 +00:00
Jeffrey Yasskin
6f5d3f326f
Backport issue 4597 to python 2.5.3: Fixed several opcodes that weren't always
...
propagating exceptions.
2008-12-10 17:23:20 +00:00
Hirokazu Yamamoto
6f63190ded
Issue #4302 : Minor corrections to smtplib. (Backport r60975)
2008-12-10 09:54:59 +00:00
Jeffrey Yasskin
478a1aa537
Backported issue #4589 to Python 2.5.3: Propagated an exception thrown by a
...
context manager's __exit__ method's result while it's being converted to bool.
2008-12-10 07:28:12 +00:00
Amaury Forgeot d'Arc
ef633d7c5d
#4317 : Fix an Array Bounds Read in imageop.rgb2rgb8.
...
Backport of r67266
2008-11-18 22:35:48 +00:00
Benjamin Peterson
42fe1a2ff8
backport r67246 from the trunk
2008-11-17 23:35:24 +00:00
Andrew M. Kuchling
b9433b5d5e
Backport r66813: per Greg Ward, optparse is no longer being externally maintained.
2008-11-14 00:17:12 +00:00
Andrew M. Kuchling
8b2b75692a
Backport r66804: #1415508 from Rocky Bernstein: add docstrings for enable_interspersed_args(), disable_interspersed_args()
2008-11-14 00:11:12 +00:00
Hirokazu Yamamoto
007ee17e21
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.
2008-11-03 18:18:08 +00:00
Benjamin Peterson
6f08e85ad9
backport r67077 from the trunk: parser module now correctly validates relative imports
2008-11-03 15:19:35 +00:00
Amaury Forgeot d'Arc
3b335ff340
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.
2008-10-30 21:40:05 +00:00
Benjamin Peterson
833beab0e6
backport r66689: imageop could segfault due to poor argument validation
2008-09-30 01:46:48 +00:00
Thomas Heller
a702fd537d
Fix issue #3547 for MingW, update comments (backport from trunk).
2008-09-29 20:04:02 +00:00
Brett Cannon
70f1192dfc
Backport of r66677: _lsprof crasher when a bad external timer is used during
...
garbage collection of a Profiler object.
2008-09-29 03:57:24 +00:00
Amaury Forgeot d'Arc
b50f9926ca
#3967 : Correct a crash in count() and find() methods of string-like objects.
...
For example:
"".count("xxxx", sys.maxint, 0)
Backport of r66631.
2008-09-26 22:46:01 +00:00
Georg Brandl
4235e6f111
#3968 : fix missing update() call in end_fill().
2008-09-26 07:17:03 +00:00
Georg Brandl
00d71436c7
#3969 : fix typo in turtle.py.
2008-09-26 07:14:57 +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
Benjamin Peterson
c610afbca4
backport r66496: integer overflow in _hashopenssl #3886
2008-09-18 01:27:26 +00:00
Hirokazu Yamamoto
308334d6a4
Issue #3804 : Added test for Issue #2222 .
...
Reviewed by Benjamin Peterson.
2008-09-08 23:10:08 +00:00
Gregory P. Smith
34c688129f
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.
2008-09-07 01:03:35 +00:00
Hirokazu Yamamoto
f4e2ccf3b3
Issue #3762 : platform.architecture() fails if python is lanched via its symbolic link.
...
Reviewed Amaury Forgeot d'Arc (Backport of r66213)
2008-09-04 11:21:28 +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
Gregory P. Smith
50b1c4920b
backport r66093 from trunk.
...
issue3715: docstring representation of hex escaped string needs to be double
escaped.
2008-08-31 16:36:21 +00:00
Benjamin Peterson
efbf6fc73e
let Windows bots pass on test_threading
2008-08-23 21:25:16 +00:00
Robert Schuppenies
8a8bfa0bc7
Issue #1342811 : Fixed broken patch.
...
Backport from trunk r65971.
2008-08-22 08:20:35 +00:00
Hirokazu Yamamoto
4806404ecc
Reverted r65902. See http://mail.python.org/pipermail/python-checkins/2008-August/073116.html
2008-08-20 16:13:57 +00:00
Hirokazu Yamamoto
534c6e6e62
Backport r65900: fixed get_file_system in test_os.py ('path' is unicode on py3k and ansi on trunk)
2008-08-20 04:20:53 +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
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
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
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