summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-14 20:58:14 (GMT)
committerGuido van Rossum <guido@python.org>2003-04-14 20:58:14 (GMT)
commit3a3cca5b820084d759b06aed84b1070a56786af5 (patch)
tree81809e367df89b0dbb4255be3316b7083ca31e45 /Misc
parentb43f15e1ce34deac45eb173db5f12d3d979cf08e (diff)
downloadcpython-3a3cca5b820084d759b06aed84b1070a56786af5.zip
cpython-3a3cca5b820084d759b06aed84b1070a56786af5.tar.gz
cpython-3a3cca5b820084d759b06aed84b1070a56786af5.tar.bz2
- list.insert(i, x) now interprets negative i as it would be
interpreted by slicing, so negative values count from the end of the list. This was the only place where such an interpretation was not placed on a list index.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 054559b..438e619 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@ What's New in Python 2.3 beta 1?
Core and builtins
-----------------
+- list.insert(i, x) now interprets negative i as it would be
+ interpreted by slicing, so negative values count from the end of the
+ list. This was the only place where such an interpretation was not
+ placed on a list index.
+
- range() now works even if the arguments are longs with magnitude
larger than sys.maxint, as long as the total length of the sequence
fits. E.g., range(2**100, 2**101, 2**100) is the following list: