[Python-checkins] python/dist/src/Doc/lib libarray.tex,1.35,1.36
doerwalter@users.sourceforge.net
doerwalter@users.sourceforge.net
Sat, 17 May 2003 20:15:11 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv18431/Doc/lib
Modified Files:
libarray.tex
Log Message:
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.
Index: libarray.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libarray.tex,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** libarray.tex 10 May 2003 03:35:37 -0000 1.35
--- libarray.tex 18 May 2003 03:15:09 -0000 1.36
***************
*** 146,150 ****
\begin{methoddesc}[array]{insert}{i, x}
Insert a new item with value \var{x} in the array before position
! \var{i}.
\end{methoddesc}
--- 146,151 ----
\begin{methoddesc}[array]{insert}{i, x}
Insert a new item with value \var{x} in the array before position
! \var{i}. Negative values are treated as being relative to the end
! of the array.
\end{methoddesc}