summaryrefslogtreecommitdiffstats
path: root/Objects/exceptions.c
Commit message (Collapse)AuthorAgeFilesLines
* Backport r54757 - missing NULL checks.Georg Brandl2007-04-211-0/+2
|
* WindowsError.str should display the windows error code,Thomas Heller2006-10-271-7/+7
| | | | | | | not the posix error code; with test. Fixes #1576174. Backported from trunk, revision 52485.
* Bug #1566800: make sure that EnvironmentError can be called with anyGeorg Brandl2006-09-301-1/+1
| | | | | number of arguments, as was the case in Python 2.4. (backport from rev. 52061)
* Backport of fix to allow exception instances to be sliced once again.Brett Cannon2006-09-211-1/+8
|
* Remove __unicode__ method so that ``unicode(BaseException)`` succeeds.Brett Cannon2006-09-091-17/+0
| | | | Fixes bug #1551432.
* Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.Georg Brandl2006-09-061-2/+8
| | | | | | Also make sure that every exception class has __module__ set to 'exceptions'. (backport)
* Slightly revised version of patch #1538956:Marc-André Lemburg2006-08-141-0/+10
| | | | | | | | | | 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.
* Fix build problems with the platform SDK on windows. It is not sufficient ↵Kristján Valur Jónsson2006-07-031-3/+3
| | | | 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.
* Fix the CRT argument error handling for VisualStudio .NET 2005. Install a ↵Kristján Valur Jónsson2006-06-121-0/+35
| | | | | | 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.
* SF #1499797, Fix for memory leak in WindowsError_strNeal Norwitz2006-06-041-1/+0
|
* Fix memory leak found by valgrind.Neal Norwitz2006-06-021-1/+0
|
* Correctly unpickle 2.4 exceptions via __setstate__ (patch #1498571)Georg Brandl2006-06-011-0/+24
|
* Do the check for no keyword arguments in __init__ so thatGeorg Brandl2006-05-301-3/+3
| | | | subclasses of Exception can be supplied keyword args
* Disallow keyword args for exceptions.Georg Brandl2006-05-301-0/+3
|
* Add a test case for exception pickling. args is never NULL.Georg Brandl2006-05-301-11/+8
|
* Restore exception pickle support. #1497319.Georg Brandl2006-05-301-1/+11
|
* Fix refleak in socketmodule. Replace bogus Py_BuildValue calls.Georg Brandl2006-05-291-0/+1
| | | | Fix refleak in exceptions.
* Make last patch valid C89 so Windows compilers can deal with it.Thomas Wouters2006-05-281-1/+2
|
* use the UnicodeError traversal and clearing functions in UnicodeErrorMichael W. Hudson2006-05-281-4/+4
| | | | subclasses.
* Fix refleaks in UnicodeError get and set methods.Georg Brandl2006-05-281-45/+56
|
* Quality control, meet exceptions.c, round two.Michael W. Hudson2006-05-281-222/+165
| | | | | | | | | | | | | | | | 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.
* Quality control, meet exceptions.c.Michael W. Hudson2006-05-281-128/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | 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...
* move semicolonsRichard Jones2006-05-271-53/+51
|
* doc string additions and tweaksRichard Jones2006-05-271-8/+21
|
* Remove spurious semicolons after macro invocations.Georg Brandl2006-05-271-42/+42
|
* Conversion of exceptions over from faked-up classes to new-style C types.Richard Jones2006-05-271-0/+2130