a short question: is it possible to assign the result of a calculation within a generator expression to a referrer?
Let’s assume I have an expression like this:
m = (float(i.dist) - float(base) for i in met_obj if str(i.code) != '90')
i.dist is an attribute of an object which I want to chance. I tried:
m = (float(i.dist) -= float(base) for i in met_obj if str(i.code) != '90')
Or would I need to use a generator instead?
Thanks!
LarsVegas
A short answer: no, it is not possible.