[issue41409] deque.pop(index) is not supported
Akuli
report at bugs.python.org
Tue Jul 28 06:43:25 EDT 2020
Akuli <akuviljanen17 at gmail.com> added the comment:
I don't think it's very common to write code that needs to work with any MutableSequence but not with any Sequence. I think that's the only situation where missing support for deque.pop(index) is a problem.
Maybe deque should be a Sequence but not a MutableSequence. Or maybe there should be a way to say "MutableSequence does not require support for .pop(index) even though you get it by inheriting from MutableSequence".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41409>
_______________________________________
More information about the Python-bugs-list
mailing list