Jeremy Fincher tweedgeezer at
Thu Jun 26 04:20:15 CEST 2003

Gerrit Holl <gerrit at> wrote in message news:<mailman.1056577245.15021.python-list at>...
> would it be a good idea to add a .filter() method to a set object,
> which behaves like the builtin filter() but resulting in a set?
> I often see myself doing sets.Set(filter(f, someset))... Would this
> be a good addition to sets.Set?

Yes, it'd be a great idea.  filter/map/reduce should've been methods
on sequences from the beginning.


More information about the Python-list mailing list