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 serhiy.storchaka
Recipients mark.dickinson, python-dev, rhettinger, serhiy.storchaka, tim.peters
Date 2016-01-27.09:11:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453885876.48.0.758689990449.issue26194@psf.upfronthosting.co.za>
In-reply-to
Content
But the postcondition d[i] == newitem is broken if i is negative.

>>> d = deque('ABC', maxlen=3)
>>> d.insert(-1, None)
>>> d
deque(['A', None, 'B'], maxlen=3)

I would expected ['A', 'B', None].
History
Date User Action Args
2016-01-27 09:11:16serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, python-dev
2016-01-27 09:11:16serhiy.storchakasetmessageid: <1453885876.48.0.758689990449.issue26194@psf.upfronthosting.co.za>
2016-01-27 09:11:16serhiy.storchakalinkissue26194 messages
2016-01-27 09:11:16serhiy.storchakacreate