On 9/28/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> Well, maybe this is a good enough argument to give up. If the best we
> can say is that having a bytes and a str as keys *may* cause a
> TypeError on lookups, I'm not sure it is worth it to try to raise the
> probability that it'll actually be raised...

Would it make sense to have dict ignore TypeError on lookups?
Alternatively, the byte/str comparison could throw a specific subclass
of TypeError that dict ignored e.g. IncompatibleComparisonError.

-- 
Adam Hupp | http://hupp.org/adam/
_______________________________________________
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