Martin v. Löwis
358076f3e4
Backport of r66703:
...
Issue #3863 : Disabled a unit test of fork being called from a thread
when running on platforms known to exhibit OS bugs when attempting that.
2008-12-13 14:42:53 +00:00
Martin v. Löwis
46d410616d
Issue #4228 : Pack negative values the same way as 2.4
...
in struct's L format.
2008-12-13 14:34:06 +00:00
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
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
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
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
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
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
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
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
Benjamin Peterson
efbf6fc73e
let Windows bots pass on test_threading
2008-08-23 21:25:16 +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
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
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
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
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
Georg Brandl
d297f1ad78
#3117 : backport r55087, fixes segfault with lambda (None,): None.
2008-06-15 19:53:12 +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
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
Gregory P. Smith
f623467759
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.
2008-04-09 00:26:44 +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
Sean Reifscheider
4af861cb4e
Back-port of rev 61240 for issue #2238 , fixing: Some syntax errors in *args
...
and **kwargs expressions could give bogus error messages.
2008-03-20 17:39:31 +00:00
Gregory P. Smith
631df7550f
Backport r61450 from trunk:
...
Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) as
uid and gid input to accept values >=2**31 as valid while still accepting
negative numbers to pass -1 to chown for "no change".
Fixes issue1747858.
2008-03-18 19:21:40 +00:00
Trent Nelson
549171e1ab
The behaviour of winsound.Beep() seems to differ between different versions of Windows when there's either:
...
a) no sound card entirely
b) legacy beep driver has been disabled
c) the legacy beep driver has been uninstalled
Sometimes RuntimeErrors are raised, sometimes they're not. If _have_soundcard() returns False, don't expect winsound.Beep() to raise a RuntimeError, as this clearly isn't the case, as demonstrated by the various Win32 XP buildbots.
2008-03-18 07:32:47 +00:00
Trent Nelson
a6f5bf2387
Ensure this test passes even if there are no soundcards in the system. Backport from trunk r61242.
2008-03-18 03:52:22 +00:00
Raymond Hettinger
3662c9090d
Backport r61286 adding GC to the grouper for itertools.groupby() fixing Issue 2246.
2008-03-06 22:58:42 +00:00
Martin v. Löwis
bc89897e5f
Patch #2232 : os.tmpfile might fail on Windows if the user has no
...
permission to create files in the root directory.
2008-03-06 06:57:02 +00:00
Andrew M. Kuchling
f1fdda67e6
Remove old expected output for test_resource
2008-02-23 23:29:26 +00:00