Show More
@@ -252,6 +252,12 b' class sortdict(dict):' | |||
|
252 | 252 | def __delitem__(self, key): |
|
253 | 253 | dict.__delitem__(self, key) |
|
254 | 254 | self._list.remove(key) |
|
255 | def pop(self, key, *args, **kwargs): | |
|
256 | dict.pop(self, key, *args, **kwargs) | |
|
257 | try: | |
|
258 | self._list.remove(key) | |
|
259 | except ValueError: | |
|
260 | pass | |
|
255 | 261 | def keys(self): |
|
256 | 262 | return self._list |
|
257 | 263 | def iterkeys(self): |
General Comments 0
You need to be logged in to leave comments.
Login now