]> granicus.if.org Git - python/commit
Significant speedup in new-style object creation: in slot_tp_new(),
authorGuido van Rossum <guido@python.org>
Thu, 8 Aug 2002 21:57:53 +0000 (21:57 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Aug 2002 21:57:53 +0000 (21:57 +0000)
commit7bed213224508a5f33ed6d88b48017eea803f499
tree11a94b44d5e7ea821eba7ebc82451c12cbffc6dc
parent617e2305ee5d620409aa4679dccc39323a06f7a1
Significant speedup in new-style object creation: in slot_tp_new(),
intern the string "__new__" so we can call PyObject_GetAttr() rather
than PyObject_GetAttrString().  (Though it's a mystery why slot_tp_new
is being called when a class doesn't define __new__.  I'll look into
that tomorrow.)

2.2 backport candidate (but I won't do it).
Objects/typeobject.c