New submission from Akuli <akuviljane...@gmail.com>:

The pop method of collections.deque can't be used like deque.pop(index), even 
though `del deque[index]` or deque.pop() without an argument works. This breaks 
the Liskov substitution principle because collections.abc.MutableMapping 
supports the .pop(index) usage. Is this intentional?

related typeshed issue: https://github.com/python/typeshed/issues/4364

----------
components: Library (Lib)
messages: 374378
nosy: Akuli
priority: normal
severity: normal
status: open
title: deque.pop(index) is not supported

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41409>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to