[issue39694] Incorrect dictionary unpacking when calling str.format

Raymond Hettinger report at bugs.python.org
Thu Feb 20 11:02:49 EST 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

I'm with Eric and don't see this as a problem in practice.

Also, the kwarg handling for functions is fundamentally different because all arguments need to be matched.  In contrast, the kwargs for format() are only used on-demand:

    >>> '{found}'.format(found='used', not_found='ignored')
    'used'

I recommend this be left as-is.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list