En Thu, 31 Jan 2008 15:45:42 -0200, <[EMAIL PROTECTED]>  
escribió:

> Hmm, how does this fare??
>
> for i in range(len(a)):
>       if a[i]==99: a=a[:i]+a[i+1:]
>
>
> I like following your guys code noodling.  I can come up with something
> that does what it appears your doing, sometimes, but as to it's relevant
> merits I havent a clue :)

It's worse than the original `del a[i]`; not only skips over some  
elements, but you'll get an IndexError at the end

-- 
Gabriel Genellina

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

Reply via email to