Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 23494:76f376bea5e5 legacy-trunk
Patch 549187. Improve string formatting error message.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Tue, 21 May 2002 15:14:57 +0000 |
| parents | 1be6e79b1d46 |
| children | 220b98f06415 |
line wrap: on
line diff
--- a/Objects/stringobject.c Tue May 21 14:28:22 2002 +0000 +++ b/Objects/stringobject.c Tue May 21 15:14:57 2002 +0000 @@ -3628,7 +3628,7 @@ } if (dict && (argidx < arglen) && c != '%') { PyErr_SetString(PyExc_TypeError, - "not all arguments converted"); + "not all arguments converted during string formatting"); goto error; } Py_XDECREF(temp); @@ -3636,7 +3636,7 @@ } /* until end */ if (argidx < arglen && !dict) { PyErr_SetString(PyExc_TypeError, - "not all arguments converted"); + "not all arguments converted during string formatting"); goto error; } if (args_owned) {
