[Jim Jewett]
> I thought you tried changing those tuples to frozensets
>(because it was semantically better), and found that it 
> didn't actually win for tuples of length 2 or 3.

The sets were faster.  The automatic transformation didn't
go in because it changed semantics -- the searched for item
would need to be hashable -- the tuple search only requires
an equality test.


Raymond
_______________________________________________
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