Message259005
> I would expected ['A', 'B', None].
Hum, it seems consistent with list behaviour, no?
>>> x=list("abc")
>>> x.insert(-1, "X")
>>> x
['a', 'b', 'X', 'c']
-1 is the same than len(x)-1 (2 in this example).
deque(['A', None, 'B'], maxlen=3) seems correct to me. |
|
Date |
User |
Action |
Args |
2016-01-27 09:14:12 | vstinner | set | recipients:
+ vstinner, tim.peters, rhettinger, mark.dickinson, python-dev, serhiy.storchaka |
2016-01-27 09:14:12 | vstinner | set | messageid: <1453886052.72.0.0400949227817.issue26194@psf.upfronthosting.co.za> |
2016-01-27 09:14:12 | vstinner | link | issue26194 messages |
2016-01-27 09:14:12 | vstinner | create | |
|