I see no other solution to this thread than to revert the decision that comparing bytes and str raises TypeError. It may catch a trivial mistake or two, but the far from trivial, subtle issues it causes for more sophisticated code just aren't worth it. I'll add this to PEP 3137.
-- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ 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