[issue12579] str.format_map raises a SystemError for format strings with positional arguments
Eric V. Smith
report at bugs.python.org
Mon Jul 18 00:46:19 CEST 2011
Eric V. Smith <eric at trueblade.com> added the comment:
Changing the title to reflect the real problem.
You get a SystemError even when using a mapping, if you have a format string with positional arguments:
>>> '{}'.format_map({'a':0})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: null argument to internal routine
----------
title: str.format_map raises a SystemError for non-mapping -> str.format_map raises a SystemError for format strings with positional arguments
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12579>
_______________________________________
More information about the Python-bugs-list
mailing list