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, vstinner
Date 2016-01-27.19:53:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:22serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, vstinner, python-dev
2016-01-27 19:53:22serhiy.storchakasetmessageid: <>
2016-01-27 19:53:22serhiy.storchakalinkissue26194 messages
2016-01-27 19:53:22serhiy.storchakacreate