[issue33669] str.format should raise exception when placeholder number doesn't match argument number

Eric V. Smith report at bugs.python.org
Mon May 28 13:02:15 EDT 2018


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

This was a deliberate design choice, and as Serhiy notes, at least partially driven by translations. It seems to me it would be a job for a linter to point out a problem, if the string is a constant.

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33669>
_______________________________________


More information about the Python-bugs-list mailing list