"Hans Nowak" <ivnowa at hvision.nl> writes: > Hmm... how about > > host = filter(lambda c: not c in ' "', host) > > Depends on how much you like, or hate, functional idiom, though. :) I adore functional idioms (I also use the various Lisps), but I don't adore their slowness in Python so I avoid using them.