dictionary comparison

pzs at dcs.gla.ac.uk pzs at dcs.gla.ac.uk
Thu Aug 10 11:42:32 EDT 2000


I know this is going to be newbie-type question, so I apologise in
advance.

What's the best way of comparing a dictionary with another (possibly
itself) without doing each comparison twice as

for key1 in dict1.keys():
	for key2 in dict2.keys():

would?

Peter


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list