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 serhiy.storchaka
Recipients abacabadabacaba, alex, barry, docs@python, eric.smith, serhiy.storchaka
Date 2016-05-08.19:44:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462736683.58.0.818607854714.issue18531@psf.upfronthosting.co.za>
In-reply-to
Content
str.format() uses PyDict_GetItem() in 2.7, but PyObject_GetItem() in 3.x. A comment before:

        /* Use PyObject_GetItem instead of PyDict_GetItem because this
           code is no longer just used with kwargs. It might be passed
           a non-dict when called through format_map. */

Thus the behavior of str.format() was changed by accident.
History
Date User Action Args
2016-05-08 19:44:43serhiy.storchakasetrecipients: + serhiy.storchaka, barry, eric.smith, alex, abacabadabacaba, docs@python
2016-05-08 19:44:43serhiy.storchakasetmessageid: <1462736683.58.0.818607854714.issue18531@psf.upfronthosting.co.za>
2016-05-08 19:44:43serhiy.storchakalinkissue18531 messages
2016-05-08 19:44:43serhiy.storchakacreate