diff Python/compile.c @ 35778:95d0a857ae51 legacy-trunk

Use PyTuple_Pack instead of Py_BuildValue.
author Neil Schemenauer <nascheme@enme.ucalgary.ca>
date Sun, 23 Oct 2005 17:21:54 +0000
parents 0aef351223da
children 19d796bd740f
line wrap: on
line diff
--- a/Python/compile.c	Sun Oct 23 13:43:40 2005 +0000
+++ b/Python/compile.c	Sun Oct 23 17:21:54 2005 +0000
@@ -1489,8 +1489,7 @@
 	int arg;
 
         /* necessary to make sure types aren't coerced (e.g., int and long) */
-        /* XXX should use: t = PyTuple_Pack(2, o, o->ob_type); */
-        t = Py_BuildValue("(OO)", o, o->ob_type);
+        t = PyTuple_Pack(2, o, o->ob_type);
         if (t == NULL)
             return -1;