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 <>
Objects/unicodeobject.c has this, at line 14316:

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

and later at line 14348:
    if (ctx.argidx < ctx.arglen && !ctx.dict) {
                        "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.
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: <>
2013-08-16 04:04:02eric.smithlinkissue18750 messages
2013-08-16 04:04:01eric.smithcreate