[Python-ideas] Implement comparison operators for range objects
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Oct 16 01:39:34 CEST 2011
Alexander Belopolsky wrote:
> (1) tuples are usually containers of
> heterogeneous objects and regular sequences are lists; and (2) 2.x
> range() (not xrange()) returns a list rather than a tuple.)
But, conceptually, hashability has nothing to do with
the homogeneous/heterogeneous distinction. The fact
that tuples conflate them is a historical oddity.
--
Greg
More information about the Python-ideas
mailing list