diff options
author | Guido van Rossum <guido@python.org> | 2002-08-08 21:57:53 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-08 21:57:53 +0000 |
commit | 7bed213224508a5f33ed6d88b48017eea803f499 (patch) | |
tree | 11a94b44d5e7ea821eba7ebc82451c12cbffc6dc /Objects/tupleobject.c | |
parent | 617e2305ee5d620409aa4679dccc39323a06f7a1 (diff) | |
download | cpython-git-7bed213224508a5f33ed6d88b48017eea803f499.tar.gz |
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).
Diffstat (limited to 'Objects/tupleobject.c')
0 files changed, 0 insertions, 0 deletions