[issue30978] str.format_map() silences exceptions in __getitem__

STINNER Victor report at bugs.python.org
Fri Jul 21 06:36:46 EDT 2017


STINNER Victor added the comment:

While KeyboardInterrupt and ZeroDivisionError are easy to understand, IndexError converted to KeyError doesn't look like a major bug. So I'm not sure about fixing Python 3.5 and 3.6. Maybe it's ok because this function is rarely used and exceptions are not "expected": I hardly imagine a code explicitly catching KeyError to do something on format_map() error.

In short, my vote for backport is +0 :-)

----------

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


More information about the Python-bugs-list mailing list