mardi 19 juillet 2016

Why isn't it filter(not None, iterable)?


Since the definition of filter() is to return a list of elements in which the function returns True, wouldn't filter(not None, iterable) make more sense for filtering to a list that only includes items that aren't NoneType?

Aucun commentaire:

Enregistrer un commentaire