commit | 7bed213224508a5f33ed6d88b48017eea803f499 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Aug 08 21:57:53 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Aug 08 21:57:53 2002 +0000 |
tree | 11a94b44d5e7ea821eba7ebc82451c12cbffc6dc | |
parent | 617e2305ee5d620409aa4679dccc39323a06f7a1 [diff] |
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).