problem using array of instances (Never mind!)
zenguyuno at yahoo.com
zenguyuno at yahoo.com
Tue Feb 11 01:36:06 EST 2003
zenguyuno at yahoo.com wrote:
>
> I'm stuck on this one:
>
> I defined a class, call it boat.
>
> I created a list of instances, call it pop, so pop[i] is an instance of
> the boat class, and I made pop[0], pop[1], etc., all boats.
<snip>
It turned out to be something else altogether; an assignment was
changing the type of the list members.
Thanks if you tried to help.
m
--
"Very funny, Scotty. Now beam up my clothes."
More information about the Python-list
mailing list