title: Assign calculated value to variable within generator expression?
body: <p>a short question: is it possible to assign the result of a calculation within a generator expression to a referrer?</p>
  
  <p>Let's assume I have an expression like this:</p>
  
  <p><code>m = (float(i.dist) - float(base) for i in met_obj if str(i.code) != '90')</code></p>
  
  <p><code>i.dist</code> is an attribute of an object which I want to chance. I tried: </p>
  
  <p><code>m = (float(i.dist) -= float(base) for i in met_obj if str(i.code) != '90')</code></p>
  
  <p>Or would I need to use a generator instead?</p>
  
  <p>Thanks!
  LarsVegas   </p>