This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients mark.dickinson, python-dev, rhettinger, serhiy.storchaka, tim.peters, vstinner
Date 2016-01-27.09:14:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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:12vstinnersetrecipients: + vstinner, tim.peters, rhettinger, mark.dickinson, python-dev, serhiy.storchaka
2016-01-27 09:14:12vstinnersetmessageid: <>
2016-01-27 09:14:12vstinnerlinkissue26194 messages
2016-01-27 09:14:12vstinnercreate