News for hackers. Stuff that matters.
Re:Building a full-text search engine in 150 lines of Python... by echoangle on Friday January 24, 2025 @03:31AM (#42811480)
Yes, that’s just a special case. You can’t call None as a function.

https://docs.python.org/3/library/functions.html#filter

> If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed.

There are no comments on this comment yet.