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
Georg Brandl
d297f1ad78
#3117 : backport r55087, fixes segfault with lambda (None,): None.
2008-06-15 19:53:12 +00:00
Georg Brandl
7eb4a82182
Fix tkinter sequence passing. #2906 . Backport from r63914.
2008-06-03 10:26:21 +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
Georg Brandl
1a34834e09
Backport r63776: tkinter fixes.
2008-05-31 18:34:27 +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
Georg Brandl
09d374fd67
#2803 : fix heappush invocation (backport).
2008-05-11 15:21:42 +00:00
Ronald Oussoren
c0c3914b09
Backport of revision 62854
2008-05-08 10:35:13 +00:00
Gregory P. Smith
fbc190af4f
Fix os.walk docstring example - issue2707
2008-05-06 07:06:44 +00:00
Ronald Oussoren
fb30cdbf98
Fix issue 2520 (cannot import macerrors)
2008-05-02 21:54:32 +00:00
Ronald Oussoren
7fd29f01ea
Backport of revision 62648
2008-05-02 21:46:55 +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
Amaury Forgeot d'Arc
f305bd3ea2
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.
2008-04-21 22:42:30 +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
Vinay Sajip
756c6c8cf4
#1021 : fix a bug to allow basicConfig to accept NOTSET as a level.
2008-03-16 21:33:48 +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
Georg Brandl
ab61dce0e1
Bug #2220 : handle rlcompleter attribute match failure more gracefully.
...
(backport from r61275)
2008-03-06 07:46:26 +00:00
Martin v. Löwis
0e30555748
Backport of r61263:
...
#1725737 : ignore other VC directories other than CVS and SVN's too.
2008-03-06 07:14:26 +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
Martin v. Löwis
2985e30b6e
Add section for 2.5.3.
2008-03-06 06:56:35 +00:00
Andrew M. Kuchling
f1fdda67e6
Remove old expected output for test_resource
2008-02-23 23:29:26 +00:00
Andrew M. Kuchling
310bad077b
#1291 : copy test_resource.py from the 2.6 trunk, to fix a test failure.
...
The 2.6 version also converts to unittest, but it seems to work fine under 2.5.
2008-02-23 21:32:06 +00:00
Andrew M. Kuchling
664553a778
#1389051 , #1092502 : fix excessively large allocations when using read() on a socket
2008-02-23 19:30:59 +00:00
Andrew M. Kuchling
37d4f7bc0c
#1389051 : IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh.
2008-02-23 19:06:54 +00:00
Andrew M. Kuchling
05a19a507d
#1433694 : minidom's .normalize() failed to set .nextSibling for last element.
...
Fix by Malte Helmert
2008-02-23 17:21:44 +00:00
Martin v. Löwis
bcffd10596
Prepare for 2.5.2.
2008-02-21 10:04:55 +00:00