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 serhiy.storchaka
Recipients Akos Kiss, ammar2, eric.smith, iritkatriel, rhettinger, serhiy.storchaka
Date 2021-12-09.10:07:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639044458.06.0.786683878784.issue39694@roundup.psfhosted.org>
In-reply-to
Content
I disagree, but does not insists if other core developers have other opinion.

This is a special case which breaks the rules. The Python language specification does not support non-string keywords. You cannot implement this "feature" in Python. And it is not compatible with other implementations (PyPy):

>>>> ''.format(**{1:2})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: format() keywords must be strings, not 'int'

It would be understandable to not enforce this limitation if it has significant costs. But in this case it costs almost nothing.
History
Date User Action Args
2021-12-09 10:07:38serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, eric.smith, ammar2, Akos Kiss, iritkatriel
2021-12-09 10:07:38serhiy.storchakasetmessageid: <1639044458.06.0.786683878784.issue39694@roundup.psfhosted.org>
2021-12-09 10:07:38serhiy.storchakalinkissue39694 messages
2021-12-09 10:07:37serhiy.storchakacreate