I'd like to generate a defaultdict that contains a deque. For example:
d = defaultdict(deque)
The above work fine, but I'd like to make the deque a fixed length by passing in an argument:
d = defaultdict(deque(maxlen=10))
How can I pass arguments such as this to defaultdict?