[issue12579] str.format_map raises a SystemError for format strings with positional arguments

Julian report at bugs.python.org
Mon Jul 18 02:17:14 CEST 2011


Julian <Julian+Python.org at GrayVines.com> added the comment:

Well you're right :). I appreciate you taking more time to help me with this than you could have yourself. I made the change (and changed the TypeError to a ValueError as per your discovery that this was just a positional value issue, hope you agree with that).

Ran the whole test suite, all passes, other than the one test that fails for me without the patch too.

I'm not too happy with the wording on the error, "Format string contained positional fields" doesn't sound nearly specific enough, but I was weary to put something specifically referencing str.format_map in a function that handles str.format as well?

Anyways, appreciate the help again, please let me know if anything needs fixing :).

----------
Added file: http://bugs.python.org/file22682/format_map_err.patch

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


More information about the Python-bugs-list mailing list