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.

classification
Title: PyString_Format with dict
Type: behavior Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, python-dev, xwhhsprings
Priority: normal Keywords:

Created on 2013-10-04 11:09 by xwhhsprings, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg198942 - (view) Author: hiroaki itoh (xwhhsprings) Date: 2013-10-04 11:09
http://docs.python.org/2.7/c-api/string.html#PyString_Format

The documents says `The args argument must be a tuple.',
But if format is like '%(key)s', PyString_Format claims
args must be mapping protocol.
(At least 2.7.3.)
msg198954 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-04 14:55
New changeset 405245885569 by Benjamin Peterson in branch '2.7':
dict is also allowed (closes #19163)
http://hg.python.org/cpython/rev/405245885569
History
Date User Action Args
2022-04-11 14:57:51adminsetgithub: 63362
2013-10-04 14:55:27python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg198954

resolution: fixed
stage: resolved
2013-10-04 11:09:58xwhhspringscreate