Gregory P. Smith
9e6649f8ee
Backport r61468 from trunk: Improves the text of the IOError raised
...
when open() returns EINVAL. See issue2158.
2008-05-03 07:12:23 +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
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
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
Amaury Forgeot d'Arc
0f1653e957
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(())
(), (...)
2008-04-11 00:33:07 +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
a6add69a63
backport r62271 from trunk.
...
remove the now obsoleted assertion.
2008-04-10 19:54:13 +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
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
Georg Brandl
45c2f778c4
#2525 : update tzinfo example.
2008-04-07 18:53:33 +00:00
Gerhard Häring
a269762fb0
Fix for Issue2515: Don't crash when trying to fetch data from a closed cursor.
2008-04-06 11:05:24 +00:00
Guido van Rossum
f122902f76
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.)
2008-04-01 23:59:06 +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
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
eff5a4e901
The missing NEWS entry for r61542..
2008-03-18 19:24:40 +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
Neal Norwitz
b3635f99a2
Backport r61458:
...
Issue 2321: reduce memory usage (increase the memory that is returned
to the system) by using pymalloc for the data of unicode objects.
2008-03-18 04:17:36 +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
Guido van Rossum
44a93e54f4
Fix the overflows in expandtabs(). "This time for sure!"
...
(Exploit at request.)
2008-03-11 21:14:54 +00:00
Andrew M. Kuchling
8e741e008a
Grammar fix
2008-03-07 21:10:06 +00:00
Raymond Hettinger
94a7036f1f
Backport documentation improvements.
2008-03-07 20:08:41 +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
Martin v. Löwis
31679397af
Bump version for 2.5.3a0.
2008-02-23 17:35:47 +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
Andrew M. Kuchling
be0adfcfa8
Update NEWS for a future 2.5.3 release
2008-02-23 17:18:19 +00:00
Andrew M. Kuchling
b66dc46ee0
Add old NEWS item
2008-02-23 17:14:23 +00:00
Martin v. Löwis
403d59597e
Fix typo.
2008-02-22 09:17:13 +00:00
Martin v. Löwis
7e00619861
Fix typo
2008-02-22 09:15:14 +00:00
Georg Brandl
799e580ad4
#2079 : typo in userdict docs.
2008-02-21 20:34:22 +00:00
Fred Drake
3a32cffdad
as for r252c1, add the tag information so the source package is right
2008-02-21 12:57:32 +00:00
Martin v. Löwis
ab130bfc9f
Tagging for release of Python 2.5.2
2008-02-21 11:55:26 +00:00