Delete common entries between two dictionaries
Derrick 'dman' Hudson
dman at dman13.dyndns.org
Tue Dec 9 13:24:07 EST 2003
On Mon, 24 Nov 2003 14:20:30 -0800, David Eppstein wrote:
> In article <97ba91-169.ln1 at dman13.dyndns.org>,
> Derrick 'dman' Hudson <dman at dman13.dyndns.org> wrote:
>
>> This would be great for sets, if a set adequately models your data.
>> (with two sets, this would simply be (s1-(s1&s2)))
>
> You mean s1 - s2, no need for that extra &.
Ah, of course -- if an item is in s2 but not in s1, the subtraction is
a no-op.
--
Love is not affectionate feeling, but a steady wish for the loved
person's ultimate good as far as it can be obtained.
--C.S. Lewis
www: http://dman13.dyndns.org/~dman/ jabber: dman at dman13.dyndns.org
More information about the Python-list
mailing list