Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
5 additions
and
5 deletions.
-
+5
−5
topaz/objects/arrayobject.py
|
@@ -338,11 +338,11 @@ def method_insert(self, space, i, args_w): |
|
|
if i < 0: |
|
|
if i < -length - 1: |
|
|
raise space.error(space.w_IndexError, |
|
|
"index %d too small for array; minimum: %d" % (i + 1, -length)) |
|
|
"index %d too small for array; minimum: %d" % (i + 1, -length) |
|
|
) |
|
|
i += length + 1 |
|
|
assert i >= 0 |
|
|
j = i |
|
|
for e in args_w: |
|
|
self.items_w.insert(j, e) |
|
|
j += 1 |
|
|
for w_e in args_w: |
|
|
self.items_w.insert(i, w_e) |
|
|
i += 1 |
|
|
return self |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.