
March 5, 2019
10:26 a.m.
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? Thanks, -- Steven