[Python-checkins] r65755 - python/branches/tlee-ast-optimize/Objects/codeobject.c

thomas.lee python-checkins at python.org
Sun Aug 17 13:29:09 CEST 2008


Author: thomas.lee
Date: Sun Aug 17 13:29:08 2008
New Revision: 65755

Log:
Add a fix for the PyArg_ParseTuple call in code_new

Modified:
   python/branches/tlee-ast-optimize/Objects/codeobject.c

Modified: python/branches/tlee-ast-optimize/Objects/codeobject.c
==============================================================================
--- python/branches/tlee-ast-optimize/Objects/codeobject.c	(original)
+++ python/branches/tlee-ast-optimize/Objects/codeobject.c	Sun Aug 17 13:29:08 2008
@@ -197,14 +197,15 @@
 	int firstlineno;
 	PyObject *lnotab;
 
-	if (!PyArg_ParseTuple(args, "iiiiSO!O!O!SSiS|O!O!:code",
+	if (!PyArg_ParseTuple(args, "iiiiSO!O!O!SSiO!|O!O!:code",
 			      &argcount, &nlocals, &stacksize, &flags,
 			      &code,
 			      &PyTuple_Type, &consts,
 			      &PyTuple_Type, &names,
 			      &PyTuple_Type, &varnames,
 			      &filename, &name,
-			      &firstlineno, &lnotab,
+			      &firstlineno,
+			      &PyList_Type, &lnotab,
 			      &PyTuple_Type, &freevars,
 			      &PyTuple_Type, &cellvars))
 		return NULL;


More information about the Python-checkins mailing list