for , ordering
gabor
gabor at realtime.sk
Thu Jun 6 17:36:05 EDT 2002
hi,
i have a list and i want to create a copy of it with a bit different
objects... by now i have something like this:
objects1 = []
objects2 = []
.
.
.
for obj1 in objects1:
objects2.append(obj2(obj1.x))
1. isn't there a more elegant way to do this?
2. is that guaranteed that the for cycle iterates over the elemenst of
the list in the correct order ( 0,1,2,3,4,....)?
thanks,
gabor
More information about the Python-list
mailing list