[issue12579] str.format_map raises a SystemError for non-mapping
Julian
report at bugs.python.org
Mon Jul 18 00:23:45 CEST 2011
Julian <Julian+Python.org at GrayVines.com> added the comment:
Fair enough. I suppose I take .format_map to mean, here is a mapping, call __getitem__ on it for each of the keys inside the format string, to which calling 12["foo"] would get me a TypeError.
I suppose I see both as appropriate, but the fact that it's implemented by passing the mapping as kwargs seemed less relevant. Less concerned about that part though I guess.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12579>
_______________________________________
More information about the Python-bugs-list
mailing list