Commit 53876859 authored by Xavier Thompson's avatar Xavier Thompson

Add update method to builtin cypclass dict

parent 30d99a76
...@@ -297,6 +297,10 @@ cdef cypclass cypdict[K, V]: ...@@ -297,6 +297,10 @@ cdef cypclass cypdict[K, V]:
with gil: with gil:
raise KeyError("Deleting nonexistent item") raise KeyError("Deleting nonexistent item")
void update(self, const cypdict[K, V] other):
for item in other.items():
self[item.first] = item.second
void clear(self) except ~: void clear(self) except ~:
if self._active_iterators == 0: if self._active_iterators == 0:
for item in self._items: for item in self._items:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment