Last active
June 18, 2019 10:16
Revisions
-
emsi revised this gist
Jun 18, 2019 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,7 @@ def update(d1, d2): return dict(d1, **d2) def update2(d1, d2): return (lambda d: d.update(d2) or d)(d1) def remove(d, k): return d.__delitem__(k) or d -
emsi renamed this gist
Jun 18, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
emsi created this gist
Jun 18, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ d1={1:1, 2:2, 3:3} d2={3:4, 5:6, 7:8} def update(d1, d2): return dict(d1, **d2) def update2(d1, d2): return (lambda d: d.update(d2) or d)(d1)