diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-21 19:39:52 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-21 19:39:52 (GMT) |
commit | 88e7ebac4ca8153bdcd63b66b1748b0e0668d9c2 (patch) | |
tree | 630d7da713e6cce9872f500f9a0dd06200eaf683 /Python | |
parent | d51b259b31a4ca2fa81bf9d0644d365be8387a6a (diff) | |
download | cpython-88e7ebac4ca8153bdcd63b66b1748b0e0668d9c2.zip cpython-88e7ebac4ca8153bdcd63b66b1748b0e0668d9c2.tar.gz cpython-88e7ebac4ca8153bdcd63b66b1748b0e0668d9c2.tar.bz2 |
co_varnames is certainly a tuple, so let's not waste time finding out
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index b1d7346..7ce3e51 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) |