Commit Graph

1686 Commits

Author SHA1 Message Date
Samuele Pedroni
0ea0a18669 minor fix, jython-only. Don't asssume stdout to save is the ur-stdout. 2003-05-17 12:50:33 +00:00
Samuele Pedroni
e163df1bce beefed up version: jython support, covers now fixed differences between CPython/Jython. 2003-05-17 02:35:37 +00:00
Tim Peters
fa90c3e468 file_truncate(): Backported 2.3 code so that file.truncate(n) works on
Windows when n is too big to fit in a 32-bit int.  This was a hole in
2.2's large file support on Windows, and turns out it's a bad hole at
least for ZODB.
2003-04-30 19:24:59 +00:00
Martin v. Löwis
2c29daeb11 Patch #681152: Support escaped unicode characters in classes. Fixes 612074. 2003-04-19 08:39:04 +00:00
Tim Peters
8998a81937 Fixed the gc-vs-__del__ bugs for new-style classes. That's it for this one. 2003-04-08 20:33:05 +00:00
Tim Peters
1ac384995c Backporting new gc-vs-__del__ tests. These pass, but are restricted
to old-style classes.  New-style classes remain vulnerable in 2.2.
2003-04-08 19:32:53 +00:00
Tim Peters
44198f0465 This was failing on Windows, due to various attempts to delete files
that were still open.  Made the tail end of the test look more like
the CVS head version.
2003-03-31 22:48:29 +00:00
Skip Montanaro
18711bce89 backport test skip for test_locale on Mac OS X 2003-03-31 22:11:45 +00:00
Skip Montanaro
ddf625bd89 backport largefile resource requirement for Mac OSX 2003-03-31 17:42:52 +00:00
Tim Peters
58d23ae9a9 SF bug 705836: struct.pack of floats in non-native endian order
pack_float, pack_double, save_float:  All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits.  At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2.  In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.
2003-03-20 18:31:20 +00:00
Thomas Wouters
c5f77780f0 binascii_a2b_base64: Properly return an empty string if the input was all
invalid, rather than returning a string of random garbage of the
    estimated result length. Closes SF patch #703471 by Hye-Shik Chang.

Backport from 2.3.
2003-03-17 11:34:43 +00:00
Guido van Rossum
3046177b09 Backport:
Fix from SF patch #633359 by Greg Chapman for SF bug #610299:
    The problem is in sre_compile.py: the call to
    _compile_charset near the end of _compile_info forgets to
    pass in the flags, so that the info charset is not compiled
    with re.U. (The info charset is used when searching to find
    the first character at which a match could start; it is not
    generated for patterns beginning with a repeat like '\w{1}'.)
2003-02-24 01:23:03 +00:00
Guido van Rossum
32810627a2 Backport SF #660455 fix. 2003-02-12 19:09:45 +00:00
Neal Norwitz
c31c0dfba3 Partial backport for changes to fix SF bug #678518 (assert & global). 2003-02-10 01:57:51 +00:00
Neal Norwitz
5a245e4d13 backport:
revision 1.10
date: 2002/10/29 19:08:29;  author: gvanrossum;  state: Exp;  lines: +27 -0
Added test for this fix to classobject.c:

Since properties are supported here, is possible that
instance_getattr2() raises an exception.  Fix all code that made this
assumption.
2003-02-02 19:38:19 +00:00
Neal Norwitz
025a0c6417 backport:
revision 1.14
date: 2003/01/29 14:20:23;  author: mwh;  state: Exp;  lines: +5 -0
Teach the parsermodule about floor division.  Fixes

[ 676521 ] parser module validation failure
2003-02-02 19:34:40 +00:00
Neal Norwitz
89d08cbd39 backport:
Fix SF bug# 676155, RuntimeWarning with tp_compare

Check return value of PyLong_AsDouble(), it can return an error.
2003-01-28 19:40:35 +00:00
Neal Norwitz
fbaaab9d25 Backport:
Fix SF bug #667147, Segmentation fault printing str subclass

Fix infinite recursion which occurred when printing an object
whose __str__() returned self.
2003-01-13 20:17:22 +00:00
Neal Norwitz
e4b5729e70 Backport Guido's checkins which disabled the bastion tests 2003-01-13 19:24:05 +00:00
Neal Norwitz
343296172a Get the test to pass again by backporting Guido's checkin 1.173:
Disable the rexec test now that rexec is out of grace.
2003-01-13 19:22:44 +00:00
Neal Norwitz
3813a2131d backport:
SF #665913, Fix mmap module core dump with unix

Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.
2003-01-10 21:02:41 +00:00
Guido van Rossum
134b9f0785 Backport typeobject.c revision 2.201 plus associated tests from 2.3:
Add a refinement to SLOT1BINFULL() that fixes the problem reported in
SF bug #623669: only try (e.g.) __rdiv__ before __div__ if the right
class actually overrides it.

Also backport a test for a feature that broke in 2.3 (__dict__ of a
new-style class with a user-defined metaclass should be a proxy).
2003-01-07 21:49:18 +00:00
Raymond Hettinger
65b5e1fdbe Backport MAL's patch for bug #659709: bogus computation of float length 2003-01-02 22:08:39 +00:00
Neal Norwitz
5a6c0b2c57 Add test for SF #658106. Will backport. 2002-12-24 15:26:55 +00:00
Raymond Hettinger
ac4ff87825 Fix typo in abstract.c which caused __rpow__ to not be invoked.
Added related testcase.
Closes SF bug #643260.
2002-12-07 10:15:38 +00:00