this post was submitted on 22 Nov 2023
293 points (100.0% liked)
196
17027 readers
908 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
If you have any questions, feel free to contact us on our matrix channel.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It does! it takes a list (or other iterator) and filters out all values that are cast to boolean True. The same could be archived with
It would filter out values that cast to False, no?
Like None, 0, "", ...
i wasn't sure how to phrase it, it keeps all values that cast to True, and discards all that cast to False