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 rhettinger, serhiy.storchaka
Date 2015-03-21.05:26:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When appending fails, the deque is left in changed state. I would do it in different way. First append new item (can fail), and then make circular shift (never fail). This also should be faster (up to 2 times). Most code can be shared between rotate() and circular shift operation.
Date User Action Args
2015-03-21 05:26:49serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2015-03-21 05:26:49serhiy.storchakasetmessageid: <>
2015-03-21 05:26:49serhiy.storchakalinkissue23704 messages
2015-03-21 05:26:49serhiy.storchakacreate