[Python-checkins] r79230 - python/trunk/Python/ceval.c
benjamin.peterson
python-checkins at python.org
Sun Mar 21 20:39:52 CET 2010
Author: benjamin.peterson
Date: Sun Mar 21 20:39:52 2010
New Revision: 79230
Log:
co_varnames is certainly a tuple, so let's not waste time finding out
Modified:
python/trunk/Python/ceval.c
Modified: python/trunk/Python/ceval.c
==============================================================================
--- python/trunk/Python/ceval.c (original)
+++ python/trunk/Python/ceval.c Sun Mar 21 20:39:52 2010
@@ -3099,7 +3099,7 @@
}
/* Speed hack: do raw pointer compares. As names are
normally interned this should almost always hit. */
- co_varnames = PySequence_Fast_ITEMS(co->co_varnames);
+ co_varnames = ((PyTupleObject *)(co->co_varnames))->ob_item;
for (j = 0; j < co->co_argcount; j++) {
PyObject *nm = co_varnames[j];
if (nm == keyword)
More information about the Python-checkins
mailing list