Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 62914:983e2c0bf8dc
#3071: tell how many values were expected when unpacking too many.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sat, 10 Jul 2010 10:32:36 +0000 |
| parents | 69fdf68e0b5b |
| children | cbd6f5d24af9 |
line wrap: on
line diff
--- a/Python/ceval.c Sat Jul 10 10:23:40 2010 +0000 +++ b/Python/ceval.c Sat Jul 10 10:32:36 2010 +0000 @@ -3464,7 +3464,8 @@ return 1; } Py_DECREF(w); - PyErr_SetString(PyExc_ValueError, "too many values to unpack"); + PyErr_Format(PyExc_ValueError, "too many values to unpack " + "(expected %d)", argcnt); goto Error; }
