On Thursday 21 September 2006 20:21, Greg Ewing wrote: > if x not in somelist: > somelist.remove(x) I'm just guessing you really meant "if x in somelist". ;-) -Fred -- Fred L. Drake, Jr. <fdrake at acm.org>