Raymond Hettinger wrote:
> That would be at odds with the approach taken with 
> list.__hash__ which has to be called in order to find-out it is not 
> hashable.

That feature of __hash__ is just an unfortunate necessity.
It arises because hashability is sometimes a "deep"
property (i.e. it depends on the hashability of a
container's contents as well as the nature of the
container itself). No such thing applies to __iter__.

--
Greg
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to