Message259050
What if implement the bahavior described by Raymond for index -len(d) <= i < len(d), but raise an exception if the index is out of this range?
The result of deque('abc', maxlen=3).insert(i, 'X') would be:
-4: error
-3: ['X', 'a', 'b']
-2: ['a', 'X', 'b']
-1: ['a', 'b', 'X']
0: ['X', 'a', 'b']
1: ['a', 'X', 'b']
2: ['a', 'b', 'X']
3: error |
|
Date |
User |
Action |
Args |
2016-01-27 19:53:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, vstinner, python-dev |
2016-01-27 19:53:22 | serhiy.storchaka | set | messageid: <1453924402.9.0.0325789509682.issue26194@psf.upfronthosting.co.za> |
2016-01-27 19:53:22 | serhiy.storchaka | link | issue26194 messages |
2016-01-27 19:53:22 | serhiy.storchaka | create | |
|