[Python-ideas] PEP: Dict addition and subtraction

INADA Naoki songofacandy at gmail.com
Fri Mar 1 11:47:37 EST 2019


> If the keys are not strings, it currently works in CPython, but it may not work with other implementations, or future versions of CPython[2].

I don't think so.  https://bugs.python.org/issue35105 and
https://mail.python.org/pipermail/python-dev/2018-October/155435.html
are about kwargs.  I think non string keys are allowed for {**d1,
**d2} by language.

-- 
INADA Naoki  <songofacandy at gmail.com>


More information about the Python-ideas mailing list