[issue12014] str.format parses replacement field incorrectly

Eric V. Smith report at bugs.python.org
Fri May 6 19:35:46 CEST 2011


Eric V. Smith <eric at trueblade.com> added the comment:

Note also that the nested expansion is only allowed in the format_spec part, per the documentation. Your last examples are attempting to do it in the field_name, which leads to the errors you see. Your very last example doesn't look right to me. I'll have to investigate why it's giving you that error message.

----------

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


More information about the Python-bugs-list mailing list