Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #2726
| From | Jabba Laci <jabba.laci@gmail.com> |
|---|---|
| Date | 2011-04-06 19:20 -0400 |
| Subject | Is the function filter deprecated? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.88.1302132053.9059.python-list@python.org> (permalink) |
Hi, I tried Pylint today and it gave me a warning for the function "filter". Is it deprecated? Is the usage of list comprehensions encouraged? The transformation is not complicated, by the way: replace "filter( func, seq )" with "[ x for x in seq if func(x) ]" . Thanks, Laszlo
Back to comp.lang.python | Previous | Next — Next in thread | Find similar
Is the function filter deprecated? Jabba Laci <jabba.laci@gmail.com> - 2011-04-06 19:20 -0400
Re: Is the function filter deprecated? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-07 01:06 +0000
Re: Is the function filter deprecated? Paul Rubin <no.email@nospam.invalid> - 2011-04-06 22:23 -0700
csiph-web