diff options
| author | Georg Brandl <georg@python.org> | 2008-01-12 13:47:57 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-01-12 13:47:57 (GMT) |
| commit | 27e26ec4181db395deac30bac09bde1fe3e0fc2b (patch) | |
| tree | 8cb1f85b4a8d1cf85d033d0b95c6c0e2a41b0793 /Objects/object.c | |
| parent | 57fe0f29028d819fdf28dbe0e1e4dd1aa7e727aa (diff) | |
| download | cpython-27e26ec4181db395deac30bac09bde1fe3e0fc2b.zip cpython-27e26ec4181db395deac30bac09bde1fe3e0fc2b.tar.gz cpython-27e26ec4181db395deac30bac09bde1fe3e0fc2b.tar.bz2 | |
Patch #1700288: Method cache optimization, by Armin Rigo, ported to
2.6 by Kevin Jacobs.
Diffstat (limited to 'Objects/object.c')
| -rw-r--r-- | Objects/object.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c index 788e732..dbe5658 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1287,6 +1287,7 @@ PyObject_GenericGetAttr(PyObject *obj, PyObject *name) goto done; } +#if 0 /* XXX this is not quite _PyType_Lookup anymore */ /* Inline _PyType_Lookup */ { Py_ssize_t i, n; @@ -1311,6 +1312,9 @@ PyObject_GenericGetAttr(PyObject *obj, PyObject *name) break; } } +#else + descr = _PyType_Lookup(tp, name); +#endif Py_XINCREF(descr); |
