In message <[EMAIL PROTECTED]>, bambam wrote:

> The devices are in a list, and are removed by using pop(i). This
> messes up the loop iteration, so it is actually done by setting a
> flag on each device in the exception handler, with ANOTHER
> loop after each write/read/calculate sequence.

Why not just build a new list? E.g.

    newdevs = []
    for dev in devs :
        ...
        if not removing_dev :
            newdevs.append(dev)
        #end if
    #end for
    devs = newdevs
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to