title: What is the most efficient way to populate class attributes with a row from a database query?
body: <p>Looking to have a database query set all the instance variables in a class:</p>
  
  <p>Example:</p>
  
  <pre><code>def populate(self, if):
      #Perform mysql query
  
      self._name = row['name']
      self._email = row['email']
      ...
  </code></pre>
  
  <p>What's the fastest way to do this?  Or is this not recommended (with a better approach)?</p>