Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39694>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to