| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
not the posix error code; with test.
Fixes #1576174.
Backported from trunk, revision 52485.
|
|
|
|
|
| |
number of arguments, as was the case in Python 2.4.
(backport from rev. 52061)
|
| |
|
|
|
|
| |
Fixes bug #1551432.
|
|
|
|
|
|
| |
Also make sure that every exception class has __module__ set to
'exceptions'.
(backport)
|
|
|
|
|
|
|
|
|
|
| |
Replace UnicodeDecodeErrors raised during == and !=
compares of Unicode and other objects with a new
UnicodeWarning.
All other comparisons continue to raise exceptions.
Exceptions other than UnicodeDecodeErrors are also left
untouched.
|
|
|
|
| |
to test for the C compiler version when determining if we have the secure CRT from microsoft. Must test with an undocumented macro, __STDC_SECURE_LIB__ too.
|
|
|
|
|
|
| |
CRT error handler and disable the assertion for debug builds. This causes CRT to set errno to EINVAL.
This update fixes crash cases in the test suite where the default CRT error handler would cause process exit.
|
| |
|
| |
|
| |
|
|
|
|
| |
subclasses of Exception can be supplied keyword args
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix refleak in exceptions.
|
| |
|
|
|
|
| |
subclasses.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make some functions that should have been static static.
Fix a bunch of refleaks by fixing the definition of
MiddlingExtendsException.
Remove all the __new__ implementations apart from
BaseException_new. Rewrite most code that needs it to cope with
NULL fields (such code could get excercised anyway, the
__new__-removal just makes it more likely). This involved
editing the code for WindowsError, which I can't test.
This fixes all the refleaks in at least the start of a regrtest
-R :: run.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix a number of problems with the need for speed code:
One is doing this sort of thing:
Py_DECREF(self->field);
self->field = newval;
Py_INCREF(self->field);
without being very sure that self->field doesn't start with a
value that has a __del__, because that almost certainly can lead
to segfaults.
As self->args is constrained to be an exact tuple we may as well
exploit this fact consistently. This leads to quite a lot of
simplification (and, hey, probably better performance).
Add some error checking in places lacking it.
Fix some rather strange indentation in the Unicode code.
Delete some trailing whitespace.
More to come, I haven't fixed all the reference leaks yet...
|
| |
|
| |
|
| |
|
|
|