KraftDiner <[EMAIL PROTECTED]> wrote:
   ...
> objs = myListOfObjects
> for obj in objs:
>    if obj.flag:
>       newObject = copy.deepcopy(obj)
>       newObject.mirror()
>       myListOfObjects.append(newObject)

Never modify the very list you're looping on.  I doubt this is the root
of your problem, but, at any rate, loop on a COPY of the list you're
modifying -- e.g. change the first statement to

objs = list(myListOfObjects)


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to