[issue9805] Documentation on old-style formatting of dicts is overly restrictive

2010-09-08 Thread Ken Basye
New submission from Ken Basye : >From http://docs.python.org/library/stdtypes.html#string-formatting-operations >: "When the right argument is a dictionary (or other mapping type), then the formats in the string must include a parenthesised mapping key into that dictiona

[issue9805] Documentation on old-style formatting of dicts is overly restrictive

2010-09-08 Thread Ken Basye
Ken Basye added the comment: If someone's going to fix this, perhaps they might consider also adding the following clarification sentence after 'The mapping key selects the value to be formatted from the mapping.' The mapping key is interpreted as a string; a key error i

[issue9805] Documentation on old-style formatting of dicts is overly restrictive

2010-09-09 Thread Ken Basye
Ken Basye added the comment: I think Eric is correct; it's a dupe. And I was wrong about not otherwise being able to format an empty dictionary - "%s" % (d,) will always work and is arguably the right thing to do anyway. -- type: behavior -> versions: -Pyth