diff Python/ceval.c @ 59848:0d1cdd14c9fa legacy-trunk

co_varnames is certainly a tuple, so let's not waste time finding out
author Benjamin Peterson <benjamin@python.org>
date Sun, 21 Mar 2010 19:39:52 +0000
parents db94aedeb0e0
children 651a8e5c460f
line wrap: on
line diff
--- a/Python/ceval.c	Sun Mar 21 19:35:39 2010 +0000
+++ b/Python/ceval.c	Sun Mar 21 19:39:52 2010 +0000
@@ -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)