I have a list, and within it, objects are marked for deletion. However when I iterate through the list to remove objects not all the marked objects are deleted.. here is a code portion:
i = 0
for obj in self.objList:
if obj.mouseHit:
print 'delete + ' + `i`
self.objList.pop(i)
flag = True
else:
i = i + 1
print `i`
I can't see what I'm doing wrong!
It seems like the last selected object is the one that is not
deleted...
--
http://mail.python.org/mailman/listinfo/python-list
