diff options
author | Guido van Rossum <guido@python.org> | 2003-04-14 20:58:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-04-14 20:58:14 (GMT) |
commit | 3a3cca5b820084d759b06aed84b1070a56786af5 (patch) | |
tree | 81809e367df89b0dbb4255be3316b7083ca31e45 /Misc | |
parent | b43f15e1ce34deac45eb173db5f12d3d979cf08e (diff) | |
download | cpython-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/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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: |