[issue9380] Allow popping of n elements at once from a deque

2010-07-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, I'm going to reject this one. Looking at implementations in other languages, I see that this is almost never needed. It is not worth complicating the API which is currently very simple. Also, there is an issue in that the semantics are not self-evid

[issue9380] Allow popping of n elements at once from a deque

2010-07-25 Thread ipatrol
New submission from ipatrol : Yes, I know, this was proposed with builtin lists years before. But I can't help but think that at least for pop-append oriented deques, a popping analogue to extend would make use of deques in iterators easier. It should ideally return an iterator, possibly with