diff options
author | Walter Dörwald <walter@livinglogic.de> | 2003-05-18 03:15:10 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2003-05-18 03:15:10 (GMT) |
commit | 9e46abed5061729915ed39d7bb8c4d014369380e (patch) | |
tree | cffba6082397e0470ed2d2e90fd5babf9b654289 /Doc | |
parent | df0d87a922ea29f7a410e8b634ae8730caa4438e (diff) | |
download | cpython-9e46abed5061729915ed39d7bb8c4d014369380e.zip cpython-9e46abed5061729915ed39d7bb8c4d014369380e.tar.gz cpython-9e46abed5061729915ed39d7bb8c4d014369380e.tar.bz2 |
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libarray.tex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/lib/libarray.tex b/Doc/lib/libarray.tex index a590ed9..6ec056f 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}} |