Zdarzyło mi się, że mam podstawową potrzebę filtrowania: mam listę i muszę ją filtrować według atrybutu elementów. Mój kod wyglądał tak: my_list = [x for x in my_list if x.attribute == value] Ale potem pomyślałem, czy nie byłoby lepiej tak napisać? my_list = filter(lambda x: x.attribute ==...