Is the function filter deprecated?
Paul Rubin
no.email at nospam.invalid
Thu Apr 7 01:23:30 EDT 2011
More information about the Python-list mailing list
Thu Apr 7 01:23:30 EDT 2011
- Previous message (by thread): Is the function filter deprecated?
- Next message (by thread): Is the function filter deprecated?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes: > filter(func, *seqs) -> [x for x in itertools.chain(*seqs) if func(x)] > although I suppose functional programming purists might object :) Maybe you really want filter(func, chain.from_iterable(seqs))
- Previous message (by thread): Is the function filter deprecated?
- Next message (by thread): Is the function filter deprecated?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list