> I thought that when I wrote fc1 = FlightCondition() in the function it
> would create a new FlightCondition object which would be passed back
> every time.
> Instead it seems to re-reference the old version and continue to add
> to it.
That is exactly what is happening. You have created a class
Hi folks,
I'll start off with the code I wrote...
(ActivePython 2.4 on Windows XP SP2)
---
class FlightCondition(object):
lsf = [0,'Low Speed Flare']
vto = [0,'Vertical Take-Off']
def get_flight_condition(flight_data):
fc1 = FlightCondition()
for ro