Which opens up the same issue I mentioned earlier: non-string keys don't work.


On Fri, Feb 21, 2014 at 6:50 PM, Jan Kaliszewski <zuo@chopin.edu.pl> wrote:
21.02.2014 23:57, Steven D'Aprano wrote:

# 1: a wins
c = b.copy()
c.update(a)

Sometimes I do:

c = dict(b, **a)

Cheers.
*j


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



--
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple: "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated."