Op 07-04-16 om 11:12 schreef Peter Otten:
>
>>>> from collections import deque
>>>> from collections.abc import Sequence
>>>> [name for name in set(dir(Sequence)) - set(dir(deque)) if not
> name.startswith("_")]
> ['index']
>
> So the index() method seems to be what is missing.the index() method seems to be added in 3.5, so is deque a subclass of Sequence in 3.5? -- Antoon. -- https://mail.python.org/mailman/listinfo/python-list
