diff options
author | Raymond Hettinger <python@rcn.com> | 2002-05-21 15:14:57 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-05-21 15:14:57 +0000 |
commit | 70d9becacebfdd03be9899c922b9331274091b61 (patch) | |
tree | a72bfdc29ad58829419815d9bf766542e578a0e2 /Objects/stringobject.c | |
parent | 4012b80eb003c0ed4a90402a5794ed5469123459 (diff) | |
download | cpython-70d9becacebfdd03be9899c922b9331274091b61.tar.gz |
Patch 549187. Improve string formatting error message.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 6c18addcaf..668668ca4d 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -3628,7 +3628,7 @@ PyString_Format(PyObject *format, PyObject *args) } 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 @@ PyString_Format(PyObject *format, PyObject *args) } /* 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) { |