Pre-PEP: __hashable__
Lulu of the Lotus-Eaters
mertz at gnosis.cx
Tue Dec 10 23:02:59 EST 2002
Chad Netzer <cnetzer at mail.arc.nasa.gov> wrote previously:
|It would be nice to conceptually be able to have an immutable
|dictionary type, to use as a key.
What's wrong with:
key = tuple(dct.items())
Yours, Lulu...
--
Keeping medicines from the bloodstreams of the sick; food from the bellies of
the hungry; books from the hands of the uneducated; technology from the
underdeveloped; and putting advocates of freedom in prisons. Intellectual
property is to the 21st century what the slave trade was to the 16th.
More information about the Python-list
mailing list