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 -- https://mail.python.org/mailman/listinfo/python-list