I wanted to have a look at the python deque class. When I checked the source code , I found the following at line 10
from _collections import deque, default
_collections is a private implementation of a class according to this answer: "Private" (implementation) class in Python.
_collections
Being private, I don't think that you will be able to access its Python source but you can check out the C implementation here.