[Python-checkins] CVS: python/dist/src/Python ceval.c,2.291,2.292

Guido van Rossum gvanrossum@users.sourceforge.net
2001年12月03日 11:33:27 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv16852/Python
Modified Files:
	ceval.c 
Log Message:
unpack_iterable(): Add a missing DECREF in an error case. Reported by
Armin Rigo (SF bug #488477). Added a testcase to test_unpack_iter()
in test_iter.py.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.291
retrieving revision 2.292
diff -C2 -d -r2.291 -r2.292
*** ceval.c	2001年11月27日 23:29:29	2.291
--- ceval.c	2001年12月03日 19:33:25	2.292
***************
*** 2797,2800 ****
--- 2797,2801 ----
 		return 1;
 	}
+ 	Py_DECREF(w);
 	PyErr_SetString(PyExc_ValueError, "too many values to unpack");
 	/* fall through */

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