title: Set Dictionary Value to a Class?
body: <p>Is it possible to set a dictionary value to a class?<br>
  Not sure if I'm using a class in the proper manner here but something such as:</p>
  
  <pre><code>class ValueClass:
  
      def __init__(self,foo,foo2,foo3):
  
          self.foo=foo
          self.foo2=foo2
          self.foo3=foo3 
  
  res={}
  
  with open('foo.txt','r') as lines:
  
       for line in lines:
           k=line.split()[4]
           foo=line.split()[5]
           foo2=line.split()[6]
           foo3=line.split()[7]
           res[k]=ValueClass
  </code></pre>