From: Guido van Rossum Date: Mon, 27 Feb 1995 10:13:23 +0000 (+0000) Subject: don't complain about too many args if arg is a dict X-Git-Tag: v1.2b4~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=caeaafccf7343497cc654943db09c163e320316d;p=thirdparty%2FPython%2Fcpython.git don't complain about too many args if arg is a dict --- diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 7df894e12c76..cb76d77f68f5 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -921,7 +921,7 @@ formatstring(format, args) XDECREF(temp); } /* '%' */ } /* until end */ - if (argidx < arglen) { + if (argidx < arglen && !dict) { err_setstr(TypeError, "not all arguments converted"); goto error; }