title: python dictionary key Vs object attribute
body: <p>suppose i have object has key 'dlist0' with attribute 'row_id'  the i can access as</p>
  
  <pre><code>getattr(dlist0,'row_id')
  </code></pre>
  
  <p>then it return value
  but if i have a dictionary </p>
  
  <pre><code>ddict0 = {'row_id':4, 'name':'account_balance'}
  getattr(ddict0,'row_id')
  </code></pre>
  
  <p>it is not work</p>
  
  <p>my question is how can i access ddict0 and dlist0 same way </p>
  
  <p>any one can help me?</p>