[issue29360] Don't check if all keys are strings in _PyStack_AsDict()

INADA Naoki report at bugs.python.org
Tue Jan 24 04:02:13 EST 2017


INADA Naoki added the comment:

patch LGTM.

Python 2 supported `dict(**{1:3})`.  But I don't know there are any functions
supporting non-string keyword argument.

> PyPy (and other Python implementations?) don't support non-string in type dictionary.

Wow! I thought it's Python's language.
If we can prohibit non string name in all namespace, there might be possible
optimization.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29360>
_______________________________________


More information about the Python-bugs-list mailing list