Eric V. Smith <e...@trueblade.com> added the comment:
The problem with this change is that it wouldn't be backward compatible. I'm not sure how many people it would affect, but probably more than zero. >>> str.format('{ 0 }', **{' 0 ': 42}) '42' >>> str.format('{ }', **{' ': 43}) '43' Does that mean it can't be changed? Not necessarily, of course. I agree it's unfortunate that we didn't specify this back with PEP 3101. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44355> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com