I believe that collections.deque is implemented as a double linked list. I have used that data structure as a linked list a couple of times.
https://docs.python.org/3/library/collections.html#collectio...
https://docs.python.org/3/library/collections.html#collectio...
I'm quite tickled by the idea that you need a linked list because your allocator is spending too much time - traversing a linked list.
I was just surprised as I thought it was a basic structure, so it just seemed like there ought to be a `from collections import linkedlist` because python just feel like the kind of language where you just do that without even consulting the docs.
Python doesn't want you thinking in terms of data structures, just in terms of functionality. Which I think is unfortunate and limiting.
[1]: https://github.com/python/cpython/blob/a4ac14faa5c2be433738d...