cpython/Objects
Jeremy Hylton 9e392e2412 potentially useless optimization
The previous checkin (2.84) added a PyErr_Format call that made the
cost of raising an AttributeError much more expensive.  In general
this doesn't matter, except that checks for __init__ and
__del__ methods, where exceptions are caught and cleared in C, also
got much more expensive.

The fix is to split instance_getattr1 into two calls:

instance_getattr2 checks the instance and the class for the attribute
and returns it or returns NULL on error.  It does not raise an
exception.

instance_getattr1 does rexec checks, then calls instance_getattr2.  It
raises an exception if instance_getattr2 returns NULL.

PyInstance_New and instance_dealloc now call instance_getattr2
directly.
2000-04-26 20:39:20 +00:00
..
Makefile.in Marc-AAndre Lemburg: add new unicode files 2000-03-10 22:55:40 +00:00
abstract.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
bufferobject.c PyBuffer_New(): Raise ValueError if size is negative (the other 1999-08-04 13:08:19 +00:00
classobject.c potentially useless optimization 2000-04-26 20:39:20 +00:00
cobject.c New CObject from Jim Fulton, adds PyCObject_FromVoidPtrAndDesc() and 1997-10-21 19:48:35 +00:00
complexobject.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
dictobject.c Add PyDict_Copy() function to C API for dicts. It returns a new 2000-03-30 22:27:31 +00:00
fileobject.c Checking in the new, improve file.writelines() code. 2000-03-13 16:27:06 +00:00
floatobject.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
frameobject.c Christian Tismer's "trashcan" patch: 2000-03-13 16:01:29 +00:00
funcobject.c Make function objects somewhat mutable -- the members func_code, 1998-05-22 00:55:34 +00:00
intobject.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
listobject.c Christian Tismer's "trashcan" patch: 2000-03-13 16:01:29 +00:00
longobject.c Simple optimization by Christian Tismer, who gives credit to Lenny 2000-04-10 17:31:58 +00:00
methodobject.c The rest of the changes by Trent Mick and Dale Nagata for warning-free 2000-01-20 22:32:56 +00:00
moduleobject.c Patch by Chris Petrilli to display the origin of a module in its 1999-02-15 14:47:16 +00:00
object.c Christian Tismer -- total rewrite on trashcan code. 2000-04-24 15:40:53 +00:00
rangeobject.c Use 'xrange', not 'range', in error messages. Reported by Nathan Sullivan. 1999-01-09 21:40:35 +00:00
sliceobject.c Ellipses -> Ellipsis rename (the dictionary really says that it should 1996-10-11 16:25:41 +00:00
stringobject.c Marc-Andre Lemburg: 2000-04-11 15:39:26 +00:00
tupleobject.c Patch by Charles G Waldman to avoid a sneaky memory leak in 2000-04-21 21:15:05 +00:00
typeobject.c American spelling in doc string. 1997-06-02 14:43:07 +00:00
unicodectype.c Marc-Andre Lemburg: 2000-04-11 15:39:02 +00:00
unicodeobject.c Marc-Andre Lemburg: 2000-04-11 15:38:46 +00:00
xxobject.c Correct typo (Py_MethodDef doesn't exist). Reported by Uwe Zessin. 1999-01-29 14:39:12 +00:00