Comment on Building a full-text search engine in 150 lines of Python code (2021)parentComments−echoangle1yYes, that’s just a special case. You can’t call None as a function.https://docs.python.org/3/library/functions.html#filterIf function is None, the identity function is assumed, that is, all elements of iterable that are false are removed.
Comments
Yes, that’s just a special case. You can’t call None as a function.
https://docs.python.org/3/library/functions.html#filter