Skip to content

Commit af1ba18

Browse files
committed
py: list fix __add__
1 parent 066aaa7 commit af1ba18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (a *List) M__add__(other Object) (Object, error) {
207207
if b, ok := other.(*List); ok {
208208
newList := NewListSized(len(a.Items) + len(b.Items))
209209
copy(newList.Items, a.Items)
210-
copy(newList.Items[len(b.Items):], b.Items)
210+
copy(newList.Items[len(a.Items):], b.Items)
211211
return newList, nil
212212
}
213213
return NotImplemented, nil

0 commit comments

Comments
 (0)