Message408101
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. |
|
Date |
User |
Action |
Args |
2021-12-09 10:07:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, eric.smith, ammar2, Akos Kiss, iritkatriel |
2021-12-09 10:07:38 | serhiy.storchaka | set | messageid: <1639044458.06.0.786683878784.issue39694@roundup.psfhosted.org> |
2021-12-09 10:07:38 | serhiy.storchaka | link | issue39694 messages |
2021-12-09 10:07:37 | serhiy.storchaka | create | |
|