xrange not hashable - why not?

"Martin v. Löwis" martin at v.loewis.de
Sun Jan 25 13:27:22 EST 2004


Gerrit Holl wrote:
> why is an xrange object not hashable?

Because they don't have a notion of equality
beyond identity.

Regards,
Martin




More information about the Python-list mailing list