On 2007-11-16, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> Instead, filter your list. It looks like you can't use filter
> directly, so just do it manually.
>
>    for i in xrange(m):
>        .......
>        saved_nodes = []
>        for A in active_nodes[:]:

I meant to remove the slice. That line should be:

  for A in active_nodes:

>           ......
>           if not cond:
>               saved_nodes.append(A)
>
>           ......
>        active_nodes = saved_nodes
>        .....

-- 
Neil Cerutti
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to