Martin v. Löwis
3f63454e22
Patch #838546 : Make terminal become controlling in pty.fork().
2006-11-09 11:06:30 +00:00
Martin v. Löwis
a1e3422205
Correctly forward exception in instance_contains().
...
Fixes #1591996 . Patch contributed by Neal Norwitz.
2006-11-08 06:46:49 +00:00
Neal Norwitz
a3ce6aa8b7
Backport 52621:
...
Bug #1588287 : fix invalid assertion for `1,2` in debug builds.
2006-11-04 19:32:54 +00:00
Martin v. Löwis
56602a14e6
Patch #1060577 : Extract list of RPM files from spec file in
...
bdist_rpm
2006-11-04 18:14:22 +00:00
Georg Brandl
5e9f94ac7a
Bug #1576657 : when setting a KeyError for a tuple key, make sure that
...
the tuple isn't used as the "exception arguments tuple".
(backport from rev. 52535)
2006-10-29 18:31:45 +00:00
Georg Brandl
6dc39987c9
Bug #1586773 : extend hashlib docstring.
...
(backport from rev. 52532)
2006-10-29 18:01:12 +00:00
Georg Brandl
f96b162b68
I thought I had already fixed this error in the test.
2006-10-29 15:22:43 +00:00
Georg Brandl
c68d2cc3f2
Bug #1586613 : fix zlib and bz2 codecs' incremental en/decoders.
...
(backport from rev. 52529)
2006-10-29 14:39:13 +00:00
Georg Brandl
b8205a1188
Fix the new EncodedFile test to work with big endian platforms.
...
(backport from rev. 52527)
2006-10-29 09:32:19 +00:00
Georg Brandl
2527f7fee0
Patch #1583880 : fix tarfile's problems with long names and posix/
...
GNU modes.
(backport from rev. 52524)
2006-10-29 09:16:15 +00:00
Georg Brandl
0d3de7612c
Bug #1357915 : allow all sequence types for shell arguments in
...
subprocess.
(backport from rev. 52522)
2006-10-29 09:05:08 +00:00
Georg Brandl
2a5a3027f2
Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
...
fix all codecs file wrappers to work correctly with the "with"
statement (bug #1586513 ).
(backport from rev. 52517)
2006-10-29 08:39:27 +00:00
Neal Norwitz
2f0940b6ca
Backport 52504:
...
Fix bug #1565514 , SystemError not raised on too many nested blocks.
It seems like this should be a different error than SystemError, but
I don't have any great ideas and SystemError was raised in 2.4 and earlier.
2006-10-28 21:38:43 +00:00
Thomas Heller
a0a50feea8
WindowsError.str should display the windows error code,
...
not the posix error code; with test.
Fixes #1576174 .
Backported from trunk, revision 52485.
2006-10-27 18:47:29 +00:00
Andrew M. Kuchling
ff9e7abac8
[Patch #1574068 by Scott Dial] urllib and urllib2 were using
...
base64.encodestring() for encoding authentication data.
encodestring() can include newlines for very long input, which
produced broken HTTP headers.
2.4 backport candidate, probably.
2006-10-27 17:13:33 +00:00
Andrew M. Kuchling
7d1d540cc3
[Bug #1575506 ] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error
2006-10-27 16:57:44 +00:00
Andrew M. Kuchling
3d6a834e29
[Bug #1576241 ] Let functools.wraps work with built-in functions
2006-10-27 16:42:19 +00:00
Martin v. Löwis
62e58040c1
[Backport of r52452]
...
Patch #1549049 : Rewrite type conversion in structmember.
Fixes #1545696 and #1566140 .
The new warnings have been omitted in the backport.
2006-10-27 06:17:21 +00:00
Georg Brandl
ee23f4bba7
Patch [ 1583506 ] tarfile.py: 100-char filenames are truncated
...
(backport from rev. 52431)
2006-10-24 16:54:23 +00:00
Martin v. Löwis
920fa6a102
Remove passwd.adjunct.byname from list of maps
...
for test_nis.
2006-10-22 13:46:23 +00:00
Thomas Heller
dcbf64d34d
ctypes callback functions only support 'fundamental' result types.
...
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called. This is a partial fix for #1574584 .
Backported from trunk.
2006-10-17 19:41:10 +00:00
Georg Brandl
58bf57fa04
Fix tarfile depending on buggy int('1\0', base) behavior.
...
(backport from rev. 52313)
2006-10-12 12:03:11 +00:00
Georg Brandl
dd4c398c27
Bug #1545497 : when given an explicit base, int() did ignore NULs
...
embedded in the string to convert.
(backport from rev. 52305)
2006-10-12 11:28:04 +00:00
Georg Brandl
3c48709e3a
Bug #1548891 : The cStringIO.StringIO() constructor now encodes unicode
...
arguments with the system default encoding just like the write()
method does, instead of converting it to a raw buffer.
(backport from rev. 52301)
2006-10-12 09:47:17 +00:00
Georg Brandl
fcf6696255
Bug #1550524 : better heuristics to find correct class definition
...
in inspect.findsource().
(backport from rev. 52299)
2006-10-12 09:20:36 +00:00
Georg Brandl
f0db92a676
Bug #813342 : Start the IDLE subprocess with -Qnew if the parent
...
is started with that option.
(backport from rev. 52295)
2006-10-12 07:57:24 +00:00
Martin v. Löwis
463a42b5de
Bug #1565150 : Fix subsecond processing for os.utime on Windows.
2006-10-09 20:44:50 +00:00
Andrew M. Kuchling
0037300f15
[Bug #1545341 ] Let the 'classifiers' parameter be a tuple as well as a list.
2006-10-09 17:13:26 +00:00
Ronald Oussoren
115930d981
Backport of r52236
2006-10-08 17:52:37 +00:00
Ronald Oussoren
beb82a3772
Backport of r52233
2006-10-08 17:50:26 +00:00
Hye-Shik Chang
f4fe46d74b
Backport from trunk r52223:
...
Bug #1572832 : fix a bug in ISO-2022 codecs which may cause segfault
when encoding non-BMP unicode characters. (Submitted by Ray Chason)
2006-10-08 14:01:45 +00:00
Georg Brandl
a5fe3ef8d8
Fix #1569998 : no break inside try statement (outside loop) allowed.
...
(backport from rev. 52129)
2006-10-08 07:12:23 +00:00
Georg Brandl
74284b9606
Patch #1542451 : fix crash with continue in nested try/finally
...
(backport from rev. 51439)
2006-10-08 07:06:29 +00:00
Armin Rigo
4b63c21d6f
Forward-port of r52136: a review of overflow-detecting code.
...
* unified the way intobject, longobject and mystrtoul handle
values around -sys.maxint-1.
* in general, trying to entierely avoid overflows in any computation
involving signed ints or longs is extremely involved. Fixed a few
simple cases where a compiler might be too clever (but that's all
guesswork).
* more overflow checks against bad data in marshal.c.
* 2.5 specific: fixed a number of places that were still confusing int
and Py_ssize_t. Some of them could potentially have caused
"real-world" breakage.
* list.pop(x): fixing overflow issues on x was messy. I just reverted
to PyArg_ParseTuple("n"), which does the right thing. (An obscure
test was trying to give a Decimal to list.pop()... doesn't make
sense any more IMHO)
* trying to write a few tests...
2006-10-04 11:44:06 +00:00
Martin v. Löwis
10525ad313
Fix integer negation and absolute value to not rely
...
on undefined behaviour of the C compiler anymore.
2006-10-04 05:47:47 +00:00
Barry Warsaw
a027bac30a
decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
...
test for parts > 3 when we use .split(..., 2).
2006-10-04 01:28:43 +00:00
Georg Brandl
1206a933cc
Bug #1446043 : correctly raise a LookupError if an encoding name given
...
to encodings.search_function() contains a dot.
(backport from rev. 52075)
2006-09-30 11:22:35 +00:00
Georg Brandl
6d7c36332f
Bug #1556784 : allow format strings longer than 127 characters in
...
datetime's strftime function.
(backport from rev. 52072)
2006-09-30 11:17:43 +00:00
Georg Brandl
7037745be7
Bug #1560617 : in pyclbr, return full module name not only for classes,
...
but also for functions.
(backport from rev. 52069)
2006-09-30 11:06:55 +00:00
Georg Brandl
9c9a9ab634
Bug #1566602 : correct failure of posixpath unittest when $HOME ends
...
with a slash.
(backport from rev. 52065)
2006-09-30 09:13:29 +00:00
Georg Brandl
506cc189a9
Bug #1566800 : make sure that EnvironmentError can be called with any
...
number of arguments, as was the case in Python 2.4.
(backport from rev. 52061)
2006-09-30 09:03:45 +00:00
Georg Brandl
af4337a017
Patch #1567691 : super() and new.instancemethod() now don't accept
...
keyword arguments any more (previously they accepted them, but didn't
use them).
(backport from rev. 52058)
2006-09-30 08:43:50 +00:00
Georg Brandl
bbcb2814f2
Bug #1565661 : in webbrowser, split() the command for the default
...
GNOME browser in case it is a command with args.
(backport from rev. 52056)
2006-09-30 07:32:00 +00:00
Georg Brandl
c57221e158
Backport rev. 51972:
...
Bug #1557232 : fix seg fault with def f((((x)))) and def f(((x),)).
These tests should be improved. Hopefully this fixes variations when
flipping back and forth between fpdef and fplist.
2006-09-25 07:04:10 +00:00
Georg Brandl
edd81b2402
Fix a bug in traceback.format_exception_only() that led to an error
...
being raised when print_exc() was called without an exception set.
In version 2.4, this printed "None", restored that behavior.
(backport from rev. 51995)
2006-09-24 12:50:28 +00:00
Georg Brandl
a6b9ce185e
Fix a bug in the parser's future statement handling that led to "with"
...
not being recognized as a keyword after, e.g., this statement:
from __future__ import division, with_statement
(backport from rev. 51993)
2006-09-24 12:35:40 +00:00
Georg Brandl
1f21578965
Fix webbrowser.BackgroundBrowser on Windows.
...
(backport from rev. 51991)
2006-09-24 10:36:08 +00:00
Jack Diederich
187e64806f
backport of r51950
...
* regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_t
which breaks negative counts
* added test for negative numbers
2006-09-21 18:32:11 +00:00
Brett Cannon
c70e003f75
Backport of fix to allow exception instances to be sliced once again.
2006-09-21 18:12:15 +00:00
Anthony Baxter
2d8697f32c
Preparing for 2.5 final.
...
(damn, it's nice to see the line
#define PY_VERSION "2.5"
in patchlevel.h)
2006-09-18 06:51:50 +00:00