Skip to content

Commit 2c52038

Browse files
committed
Merge pull request #69 from dannyroberts/jsonarray-delitem
add __delitem__ to JsonArray
2 parents 6f1a510 + 97307f3 commit 2c52038

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jsonobject/base.py

+4
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ def append(self, wrapped):
256256
self._obj.append(unwrapped)
257257
super(JsonArray, self).append(wrapped)
258258

259+
def __delitem__(self, i):
260+
super(JsonArray, self).__delitem__(i)
261+
del self._obj[i]
262+
259263
def extend(self, wrapped_list):
260264
if wrapped_list:
261265
wrapped_list, unwrapped_list = zip(

0 commit comments

Comments
 (0)