This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients cameron, eric.smith, steven.daprano
Date 2021-06-09.06:57:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623221834.15.0.0992680769588.issue44355@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-06-09 06:57:14eric.smithsetrecipients: + eric.smith, cameron, steven.daprano
2021-06-09 06:57:14eric.smithsetmessageid: <1623221834.15.0.0992680769588.issue44355@roundup.psfhosted.org>
2021-06-09 06:57:14eric.smithlinkissue44355 messages
2021-06-09 06:57:14eric.smithcreate