Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Backport r54757 - missing NULL checks. | Georg Brandl | 2007-04-21 | 1 | -0/+2 |
| | |||||
* | WindowsError.str should display the windows error code, | Thomas Heller | 2006-10-27 | 1 | -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 any | Georg Brandl | 2006-09-30 | 1 | -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 Cannon | 2006-09-21 | 1 | -1/+8 |
| | |||||
* | Remove __unicode__ method so that ``unicode(BaseException)`` succeeds. | Brett Cannon | 2006-09-09 | 1 | -17/+0 |
| | | | | Fixes bug #1551432. | ||||
* | Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack. | Georg Brandl | 2006-09-06 | 1 | -2/+8 |
| | | | | | | Also make sure that every exception class has __module__ set to 'exceptions'. (backport) | ||||
* | Slightly revised version of patch #1538956: | Marc-André Lemburg | 2006-08-14 | 1 | -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ónsson | 2006-07-03 | 1 | -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ónsson | 2006-06-12 | 1 | -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_str | Neal Norwitz | 2006-06-04 | 1 | -1/+0 |
| | |||||
* | Fix memory leak found by valgrind. | Neal Norwitz | 2006-06-02 | 1 | -1/+0 |
| | |||||
* | Correctly unpickle 2.4 exceptions via __setstate__ (patch #1498571) | Georg Brandl | 2006-06-01 | 1 | -0/+24 |
| | |||||
* | Do the check for no keyword arguments in __init__ so that | Georg Brandl | 2006-05-30 | 1 | -3/+3 |
| | | | | subclasses of Exception can be supplied keyword args | ||||
* | Disallow keyword args for exceptions. | Georg Brandl | 2006-05-30 | 1 | -0/+3 |
| | |||||
* | Add a test case for exception pickling. args is never NULL. | Georg Brandl | 2006-05-30 | 1 | -11/+8 |
| | |||||
* | Restore exception pickle support. #1497319. | Georg Brandl | 2006-05-30 | 1 | -1/+11 |
| | |||||
* | Fix refleak in socketmodule. Replace bogus Py_BuildValue calls. | Georg Brandl | 2006-05-29 | 1 | -0/+1 |
| | | | | Fix refleak in exceptions. | ||||
* | Make last patch valid C89 so Windows compilers can deal with it. | Thomas Wouters | 2006-05-28 | 1 | -1/+2 |
| | |||||
* | use the UnicodeError traversal and clearing functions in UnicodeError | Michael W. Hudson | 2006-05-28 | 1 | -4/+4 |
| | | | | subclasses. | ||||
* | Fix refleaks in UnicodeError get and set methods. | Georg Brandl | 2006-05-28 | 1 | -45/+56 |
| | |||||
* | Quality control, meet exceptions.c, round two. | Michael W. Hudson | 2006-05-28 | 1 | -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. Hudson | 2006-05-28 | 1 | -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 semicolons | Richard Jones | 2006-05-27 | 1 | -53/+51 |
| | |||||
* | doc string additions and tweaks | Richard Jones | 2006-05-27 | 1 | -8/+21 |
| | |||||
* | Remove spurious semicolons after macro invocations. | Georg Brandl | 2006-05-27 | 1 | -42/+42 |
| | |||||
* | Conversion of exceptions over from faked-up classes to new-style C types. | Richard Jones | 2006-05-27 | 1 | -0/+2130 |