title: Accessing items in an collections.OrderedDict by index
body: <p>Lets say I have the following code:</p>
  
  <pre><code>import collections
  d = collections.OrderedDict()
  d['foo'] = 'python'
  d['bar'] = 'spam'
  </code></pre>
  
  <p>Is there a way I can access the items in a numbered manner, like: </p>
  
  <pre><code>d(0) #foo's Output
  d(1) #bar's Output
  </code></pre>