From: Benjamin Peterson Date: Sun, 21 Mar 2010 19:39:52 +0000 (+0000) Subject: co_varnames is certainly a tuple, so let's not waste time finding out X-Git-Tag: v2.7b1~272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88e7ebac4ca8153bdcd63b66b1748b0e0668d9c2;p=python co_varnames is certainly a tuple, so let's not waste time finding out --- diff --git a/Python/ceval.c b/Python/ceval.c index b1d73462f9..7ce3e514e1 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3099,7 +3099,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals, } /* 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)