This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients asvetlov, eric.smith, r.david.murray, vstinner
Date 2013-08-16.04:04:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376625842.55.0.468693588955.issue18750@psf.upfronthosting.co.za>
In-reply-to
Content
Objects/unicodeobject.c has this, at line 14316:

    if (PyMapping_Check(args) && !PyTuple_Check(args) && !PyUnicode_Check(args))
        ctx.dict = args;
    else
        ctx.dict = NULL;

and later at line 14348:
    if (ctx.argidx < ctx.arglen && !ctx.dict) {
        PyErr_SetString(PyExc_TypeError,
                        "not all arguments converted during string formatting");
        goto onError;
    }

Because list now returns true for PyMapping_Check, this code thinks the list is a dict and skips the error.

There's some discussion of PyMapping_Check in issue 5945.
History
Date User Action Args
2013-08-16 04:04:02eric.smithsetrecipients: + eric.smith, vstinner, r.david.murray, asvetlov
2013-08-16 04:04:02eric.smithsetmessageid: <1376625842.55.0.468693588955.issue18750@psf.upfronthosting.co.za>
2013-08-16 04:04:02eric.smithlinkissue18750 messages
2013-08-16 04:04:01eric.smithcreate