d.keys() and d.values()

Gerrit Holl gerrit at nl.linux.org
Tue Jun 24 06:03:33 EDT 2003


Hi,

is it guaranteed that dict(zip(d.keys(), d.values())) == d?
In words, do .keys() and .values() always have the same order? Is
it safe to rely on this?

yours,
Gerrit.

-- 
279. If any one by a male or female slave, and a third party claim it,
the seller is liable for the claim.
        -- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list