diff Doc/lib/libarray.tex @ 29163:2bb5ceef9ac3 legacy-trunk

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.
author Walter Dörwald <walter@livinglogic.de>
date Sun, 18 May 2003 03:15:10 +0000
parents c019aa827f86
children 35f56e08727f
line wrap: on
line diff
--- a/Doc/lib/libarray.tex	Sun May 18 02:25:07 2003 +0000
+++ b/Doc/lib/libarray.tex	Sun May 18 03:15:10 2003 +0000
@@ -145,7 +145,8 @@
 
 \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}}