> I'd like to remove all doubt: {**d1} needs to work regardless of the key 
> type, as long as it's hashable  (d1 could be some mapping implemented without 
> hashing, e.g. using a balanced tree, so that it could support unhashable 
> keys).
> 
> If there's doubt about this anywhere, we could add an example to the docs and 
> to the PEP.


On a related note: **kwargs, should they support arbitrary strings as keys? I 
depend on this behavior in production code and all python implementations 
handle it.

/ Anders
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to