Deleting characters from a string
Magnus L. Hetland
mlh at idt.ntnu.no
Sun Jun 6 18:49:03 EDT 1999
"Hans Nowak" <ivnowa at hvision.nl> writes:
> On 5 Jun 99, Hrvoje Niksic wrote:
>
[...]
> host = filter(lambda c: not c in ' "', host)
Or - IMO more appropriately <wink>:
host = filter(lambda c: c not in ' "', host)
>
> Depends on how much you like, or hate, functional idiom, though. :)
--
Magnus Making no sound / Yet smouldering with passion
Lie The firefly is still sadder / Than the moaning insect
Hetland : Minamoto Shigeyuki
More information about the Python-list
mailing list