New issue 2554: pypy dict() cannot create dict with dict has key with type int
https://bitbucket.org/pypy/pypy/issues/2554/pypy-dict-cannot-create-dict-with-dict-has
Jeffery Chenn:
In python 2,7, the following is worked.
>>> d={ 1:0, 0:1}
>>> x=dict(**d)
>>> x
{0: 1, 1: 0}
but for pypy. it is not worked.
>>>> d={ 1:0, 0:1}
>>>> x=dict(**d)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: keywords must be strings
It raise, keywords must be strings
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue