From e36fc83b39335cdc929c02ca84ef950f08be22bb Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Tue, 3 Mar 2015 17:26:50 +0100 Subject: [PATCH] Noted important bug in llListReplaceList --- lslopt/lslbasefuncs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index 5ba956e..35bc3e2 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1125,6 +1125,7 @@ def llListReplaceList(lst, elems, start, end): if end == -1: end += L return lst[end+1:start] + elems if end == -1: end += L + # BUG: llListReplaceList([1,2,3,4],[5],-5,-5) should return [1,2,3,4] return lst[:start] + elems + lst[end+1:] def llListSort(lst, stride, asc):