Skip to content

Commit e0ae6dd

Browse files
author
michael.hudson
committed
Quality control, meet exceptions.c.
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... git-svn-id: http://svn.python.org/projects/python/trunk@46501 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 03d0549 commit e0ae6dd

File tree

1 file changed

+105
-128
lines changed

1 file changed

+105
-128
lines changed

0 commit comments

Comments
 (0)