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 rhettinger
Recipients josh.r, rhettinger
Date 2015-03-31.01:38:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427765881.17.0.938679451665.issue23793@psf.upfronthosting.co.za>
In-reply-to
Content
> The behavior for multiplying or adding doesn't seem quite so 
> intuitive when you allow for a bounded deque.

What would you want it to do?  By design, the key feature of maxlen is pop old inputs to make way newer appends -- that is its essence.

It would be surprising if the following invariant didn't hold:

>>> deque('abc' * 3, maxlen=5) == deque('abc', maxlen=5) * 3
True

That said, I don't expect that people are going to commonly be doing d*=n where len(d) > 1 and there is a maxlen > len(d)*n.   The normal cases are unsurprising.
History
Date User Action Args
2015-03-31 01:38:01rhettingersetrecipients: + rhettinger, josh.r
2015-03-31 01:38:01rhettingersetmessageid: <1427765881.17.0.938679451665.issue23793@psf.upfronthosting.co.za>
2015-03-31 01:38:01rhettingerlinkissue23793 messages
2015-03-31 01:38:00rhettingercreate