[Patches] [ python-Patches-761104 ] adding BaseSet.filter and Set.filter_update
SourceForge.net
noreply@sourceforge.net
Thu, 26 Jun 2003 03:15:25 -0700
Patches item #761104, was opened at 2003-06-26 12:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=761104&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerrit Holl (gerrit)
Assigned to: Nobody/Anonymous (nobody)
Summary: adding BaseSet.filter and Set.filter_update
Initial Comment:
Hi,
as proposed in [0], this patch adds a method 'filter'
to BaseSet and a method 'filter_update' to Set. I often
see myself doing "newset = sets.Set(filter(f,
someset))" or "someset = sets.Set(filter(f, someset))".
This is now no longer necessary. I think this method is
a good solution to this problem.
I'm not sure whether it is correct to add my name to
the code history since it is a small change. If this is
not correct feel free to remove it.
This patch also corrects the docstring: the docstring
says _TemporarilyImmutableSet is not a subset of
BaseSet, but it is.
Gerrit.
[0]
http://groups.google.nl/groups?dq=&hl=nl&lr=&ie=UTF-8&oe=UTF-8&group=comp.lang.python&selm=mailman.1056577245.15021.python-list%40python.org
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=761104&group_id=5470