[Python-checkins] python/dist/src/Python compile.c,2.357,2.358

nascheme@users.sourceforge.net nascheme at users.sourceforge.net
Sun Oct 23 19:21:58 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5037/Python
Modified Files:
	compile.c 
Log Message:
Use PyTuple_Pack instead of Py_BuildValue.
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.357
retrieving revision 2.358
diff -u -d -r2.357 -r2.358
--- compile.c	23 Oct 2005 04:24:49 -0000	2.357
+++ compile.c	23 Oct 2005 17:21:54 -0000	2.358
@@ -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;
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /