Is the function filter deprecated?

Jabba Laci jabba.laci at
Wed Apr 6 19:20:31 EDT 2011


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) ]" .



More information about the Python-list mailing list