[Python-ideas] Joining dicts again

Ryan Gonzalez rymg19 at gmail.com
Sat Feb 22 02:42:00 CET 2014


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 at 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 at 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."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140221/e8692a4b/attachment.html>


More information about the Python-ideas mailing list