
Feb. 12, 2015
11:29 p.m.
On Feb 12, 2015, at 6:28 PM, Eric Snow <ericsnowcurrently@gmail.com> wrote:
On Thu, Feb 12, 2015 at 5:25 AM, Donald Stufft <donald@stufft.io> wrote:
I’ve wanted this several times, explicitly the copying variant of it. I always get slightly annoyed whenever I have to manually spell out the copy and the update.
copy-and-update:
dict(old_dict, **other_dict)
Only works if other_dict’s keys are all valid keyword arguments and AFAIK is considered an implementation detail of CPython. --- Donald Stufft PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA