pydicom's Datasets are just derived classes of python's dict, so this
discussion on Stack Overflow:
http://stackoverflow.com/questions/314583/comparing-multiple-dictionaries-in-python
should point you in the right direction. At a quick glance, it looks
to me like Claudiu's answer may be the best one.
The answer talks about the intersection (common elements of all
dicts), but python sets (
http://docs.python.org/library/sets.html) can
do differences etc too so you should be able to compare each dataset
against the common intersection to find your differences as well.
And you should be able to wrap the result into a pydicom Dataset again
to be able to access the tags as usual.
dsIntersect = Dataset(result)
(untested -- but it looks like result comes back as a list of
key,value pairs so it should work)
Hope that helps,
Darcy