[issue6081] str.format_from_mapping()

Filip Gruszczyński report at bugs.python.org
Tue Mar 23 22:27:33 CET 2010


Filip Gruszczyński <gruszczy at gmail.com> added the comment:

I have created a new patch, that should be satisfying now. There is help (though it is quite small, I tried to mimic those that were already in unicode.c) and tests. Right now format_using_mapping is called like this:

format_using_mapping(mapping, *args)

where mapping is a subscriptible object, that will be pushed to kwargs and the following args are used just like in normal format. This should be as similar to the normal format as possible.

There are also tests, including usage presented in the ticket.

----------
Added file: http://bugs.python.org/file16632/6081_2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6081>
_______________________________________


More information about the Python-bugs-list mailing list