Finding items not in 2 lists/dictionaries
Terry Reedy
tjreedy at udel.edu
Fri May 2 02:25:07 EDT 2003
"Robin Siebler" <robin.siebler at palmsource.com> wrote in message
news:95c29a5e.0305011933.289d71ca at posting.google.com...
> On page 15 of the Python Cookbook, it shows how to find all of the
> common items in 2 dictionaries. How would I find all of the items
> that are *not* in both dictionaries (or lists)?
I believe you are describing the symmetric difference: union -
intersection.
TJR
More information about the Python-list
mailing list