deque is not a subclass of Sequence.
Mark Lawrence
breamoreboy at yahoo.co.uk
Thu Apr 7 06:26:26 EDT 2016
On 07/04/2016 10:25, Antoon Pardon wrote:
>
> the index() method seems to be added in 3.5, so is deque
> a subclass of Sequence in 3.5?
>
Yes, this http://bugs.python.org/issue23704 refers.
Use the builtin
https://docs.python.org/3/library/functions.html#issubclass to try it.
>>> issubclass(deque, Sequence)
True
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Python-list
mailing list