title: How to print items in deque (python)
body: <p>I have this code:</p>
  
  <pre><code>import collections
  
  def last3scores():
      return collections.deque([], 3)
  
  user_last3 = collections.defaultdict(last3scores)
  
  #after this I have some more code and then this:
  
  user_last3[name].append(score)
  
  print(str(user_last3))
  </code></pre>
  
  <p>But when I run the program, I get this:</p>
  
  <pre><code>defaultdict(&lt;function last3scores at 0x0000000003806E18&gt;, {'nick': deque([2], maxlen=3)})
  </code></pre>
  
  <p>What I'd like to get is this:</p>
  
  <pre><code>{'nick': [2]}
  </code></pre>
  
  <p>Is there a way to accomplish that in Python 3.* ?</p>