Hi Wouldn't this only cause problems with large lists - for once off scripts with small lists it doesn't seem like a big issue to me.
Regards, Chris Bruno Desthuilliers wrote: > Chris Brat a écrit : > > Thanks, thats exactly what I was looking for - very neat. > > > Just note that both solutions rebind the name to a newly constructed > list instead of modifying the original list in place. This is usually > the RightThing(tm), but sometimes one wants an in-place modification. -- http://mail.python.org/mailman/listinfo/python-list