From 9e46abed5061729915ed39d7bb8c4d014369380e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Sun, 18 May 2003 03:15:10 +0000 Subject: Fix array.array.insert(), so that it treats negative indices as being relative to the end of the array, just like list.insert() does. This closes SF bug #739313. --- Doc/lib/libarray.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Doc/lib/libarray.tex') diff --git a/Doc/lib/libarray.tex b/Doc/lib/libarray.tex index a590ed985a..6ec056fbf2 100644 --- a/Doc/lib/libarray.tex +++ b/Doc/lib/libarray.tex @@ -145,7 +145,8 @@ the first occurence of \var{x} in the array. \begin{methoddesc}[array]{insert}{i, x} Insert a new item with value \var{x} in the array before position -\var{i}. +\var{i}. Negative values are treated as being relative to the end +of the array. \end{methoddesc} \begin{methoddesc}[array]{pop}{\optional{i}} -- cgit v1.2.1