| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
like an unbound method dumps core.
|
| |
|
|
|
| |
Also move the call of the test to the top; the crash is caused by a
double free.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SF 742860: WeakKeyDictionary __delitem__ uses iterkeys
Someone review this, please! Final releases are getting close, Fred
(the weakref guy) won't be around until Tuesday, and the pre-patch
code can indeed raise spurious RuntimeErrors in the presence of
threads or mutating comparison functions.
See the bug report for my confusions: I can't see any reason for why
__delitem__ iterated over the keys. The new one-liner implementation
is much faster, can't raise RuntimeError, and should be better-behaved
in all respects wrt threads.
New tests test_weak_keyed_bad_delitem and
test_weak_keyed_cascading_deletes fail before this patch.
Backported the tests and the patch.
|
| |
|
|
|
|
| |
Add a tp_new slot to function objects that handles the case of a
function requiring a closure. Put the function type in the new
module, rather than having a function new.function(). Add tests.
|
| | |
|
| | |
|
| |
|
|
| |
CPython/Jython.
|
| |
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
| |
to old-style classes. New-style classes remain vulnerable in 2.2.
|
| |
|
|
|
| |
that were still open. Made the tail end of the test look more like
the CVS head version.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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}'.)
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Fix SF bug# 676155, RuntimeWarning with tp_compare
Check return value of PyLong_AsDouble(), it can return an error.
|
| |
|
|
|
|
|
| |
Fix SF bug #667147, Segmentation fault printing str subclass
Fix infinite recursion which occurred when printing an object
whose __str__() returned self.
|
| | |
|
| |
|
|
| |
Disable the rexec test now that rexec is out of grace.
|
| |
|
|
|
|
| |
SF #665913, Fix mmap module core dump with unix
Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.
|
| |
|
|
|
|
|
|
|
| |
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).
|
| | |
|
| | |
|
| |
|
|
|
| |
Added related testcase.
Closes SF bug #643260.
|
| |
|
|
| |
Fix for bug #626172: crash using unicode latin1 single char
|
| |
|
|
| |
Jython happens to add a caret in this case too.
|
| |
|
|
| |
sys.executable.
|
| |
|
|
|
| |
Try to write to TESTFN, if that fails, try TESTFN in /tmp
If that fails, print a warning and go on.
|
| | |
|
| |
|
|
|
|
| |
Fix SF # 624982, Potential AV in slot_sq_item, by Greg Chapman
Don't crash when getting value of a property raises an exception
|
| |
|
|
|
| |
Fix for 1.33: urlsplit() should only add '//' if scheme != ''.
[SF bug 620705]
|
| |
|
|
| |
MacPython 2.2.
|
| |
|
|
|
| |
Reorganized so the test is skipped if os.popen() doesn't exist (in stead of fail
ing).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
list(xrange(sys.maxint / 4))
test. Changed 4 to 2.
The belief is that this test intended to trigger a bit of code in
listobject.c's NRESIZE macro that's looking for arithmetic overflow. As
written, it doesn't achieve that, though, and leaves it up to the platform
realloc() as to whether it wants to allocate 2 gigabytes. Some platforms
say "sure!", although they don't appear to mean it, and disaster ensues.
Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow
test instead, leaving the platform realloc() out of it.
|
| |
|
|
|
|
| |
arbitrary versions of Expat.
Not applicable to Python 2.3, which will incorporate an Expat that does not
need this crutch.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Changed new-style class instantiation so that when C's __new__
method returns something that's not a C instance, its __init__ is
not called. [SF bug #537450]
XXX This is arguably a semantic change, but it's hard to imagine a
reason for wanting to depend on the old behavior. If problems with
this are reported within a week of the release of 2.2.2 beta 1, we may
revert this change.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002/08/11 12:23:04 lemburg Python/bltinmodule.c 2.262
2002/08/11 12:23:04 lemburg Objects/unicodeobject.c 2.162
2002/08/11 12:23:03 lemburg Misc/NEWS 1.461
2002/08/11 12:23:03 lemburg Lib/test/test_unicode.py 1.65
2002/08/11 12:23:03 lemburg Include/unicodeobject.h 2.39
Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level.
u'%c' will now raise a ValueError in case the argument is an
integer outside the valid range of Unicode code point ordinals.
Closes SF bug #593581.
|
| | |
|
| | |
|
| |
|
|
|
| |
import run_suite", but the 2.2.2 version requires "from test_support
import run_suite" ... :-(
|
| |
|
|
|
| |
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py.
|
| |
|
|
|
|
|
|
| |
some updated modules, updated documentation, and updated tests. Note
that Lib/test/regrtest.py added test_email_codecs to the expected
skips for all platforms. Also note that test_email_codecs.py differs
slightly from its Python 2.3 counterpart due to the difference in
package location for TestSkipped.
|
| |
|
|
|
|
|
| |
patch #617312, both on the trunk and the 22-maint branch.
Also added a test case, and ported the test_trace I wrote for HEAD
to 2.2.2 (with all those horrible extra 'line' events ;-).
|