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 <1453886052.72.0.0400949227817.issue26194@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
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: <1453886052.72.0.0400949227817.issue26194@psf.upfronthosting.co.za>
2016-01-27 09:14:12vstinnerlinkissue26194 messages
2016-01-27 09:14:12vstinnercreate