News for hackers. Stuff that matters.
Re:WTFPython: Exploring and understanding Python through sur... by weird-eye-issue on Tuesday May 31, 2022 @06:52AM (#31568063)
From the docs:

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

So it just removes false-y values.

Very handy I've used it a ton

There are no comments on this comment yet.