Seite 2 von 2

Re: remove_all für Liste

Verfasst: Mittwoch 16. Juni 2010, 14:26
von jbs

Code: Alles auswählen

from operator import eq
from functools import partial
from itertools import ifilterfalse

ifilterfalse(partial(eq, 1), iterable)
Quasi einmal andersrum.

Re: remove_all für Liste

Verfasst: Mittwoch 16. Juni 2010, 15:55
von derdon
Also ein Litotes in Python :lol: