diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-06 16:24:27 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-06 16:24:27 -0500 |
| commit | b079f51028571bc603b8d43761c29ff56273bffc (patch) | |
| tree | 98e9375fa15667ae6138794a2789215a06148713 /python/core.py | |
| parent | 406d1370fac05bb01df8bee7678453689cd88228 (diff) | |
| download | mal-b079f51028571bc603b8d43761c29ff56273bffc.tar.gz mal-b079f51028571bc603b8d43761c29ff56273bffc.zip | |
C,PHP,Python: stepA fixup. All tests/impls pass!
Diffstat (limited to 'python/core.py')
| -rw-r--r-- | python/core.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/core.py b/python/core.py index 92ae3d9..28d9c5e 100644 --- a/python/core.py +++ b/python/core.py @@ -34,7 +34,8 @@ def assoc(src_hm, *key_vals): def dissoc(src_hm, *keys): hm = copy.copy(src_hm) - for key in keys: del hm[key] + for key in keys: + if key in hm: del hm[key] return hm def get(hm, key): |
