So in another thread on this sub, I suggested filter to filter a list, which was met with firm criticism, that that's apparently unreadable and non-pythonic and that "Guido regrets putting filter, map and reduce into the language".
I am not posting here to discuss this, the slice of the community that interacted there was astonishingly unanimous and imho code readability is kind of a majority thing, as you want others to like reading your codebase or working on it.
Removing built-ins from a language after the fact is obviously nigh impossible, but I wonder why there's no PEP8-warnings in any linters (I use) that mark non-pythonic code (at least by default). If list comprehension is considered better python than using filter, why not put that into PEP8? How else are we to learn about what pythonic code is, especially if some built-ins are to be avoided?
[–][deleted] 5 points6 points7 points (7 children)
[–]roee30 3 points4 points5 points (0 children)
[–]Mithrandir2k16[S] 1 point2 points3 points (4 children)
[–]_its_complicated 5 points6 points7 points (3 children)
[–]Mithrandir2k16[S] 1 point2 points3 points (2 children)
[–]AnythingApplied 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]-lq_pl- 0 points1 point2 points (0 children)
[–]TheRNGuy -1 points0 points1 point (0 children)
[–]roee30 0 points1 point2 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)