[issue17644] str.format() crashes

Benjamin Peterson report at bugs.python.org
Sat Apr 6 19:12:48 CEST 2013


Benjamin Peterson added the comment:

Here is a patch, which fixes the issue. This brings up rather subtle issues. For example you can have "{[{}]}" but not "{[{]}" as a format string. I wonder if having braces in the field name at all should be an error.

----------
keywords: +patch
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file29691/fix_format_spec.patch

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


More information about the Python-bugs-list mailing list