On 4/8/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > By the way, my rewrite of dominates() actually had a bug in it also, as did > your original. Yours used an 'is' to compare the tuple signatures where it > should've used ==, and mine checked individual types with 'is' instead of > comparing the entire tuple with ==. Instead of: > > all(d is not s and issubclass(d,s) for d,s in zip(dom, sub)) > > I should've written: > > dom != sub and all(issubclass(d,s) for d,s in zip(dom, sub))
But since d and s are types, and AFAIK == for types is defined as 'is', it doesn't matter? (I'm being distracted so I'll respond to more later.) -- --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