Python 3.0, rich comparisons and sorting order

Andrew Dalke adalke at mindspring.com
Tue Sep 21 16:04:07 EDT 2004


[Sorry, hit 'Send' by accident]

Phil Frost wrote:
> The right question here is, "is there a reason for mappings with
> heterogeneous key types?" It's not something that I do often, but it's
> something that's important to have. Dynamic typing is a good thing.

Though it's a different question.  mapping keys only
need to define __hash__ and __eq__.  That's easier than
defining an ordering.

				Andrew
				dalke at dalkescientific.com



More information about the Python-list mailing list