[Python-ideas] PEP: Dict addition and subtraction

Steven D'Aprano steve at pearwood.info
Tue Mar 5 05:26:33 EST 2019

On Sat, Mar 02, 2019 at 01:47:37AM +0900, INADA Naoki wrote:
> > 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.

Is this documented somewhere?

Or is there a pronouncement somewhere that it is definitely expected to 
work in any language calling itself Python?



More information about the Python-ideas mailing list