(An Unofficial) Python Tutorial Wiki

putting the community back in "maintained by the community"

3oqg

"Note that comparing objects of different types is legal"

That's not entirely correct. For example, if you compare a unicode string to an 8-bit string with non-ASCII data, you get a UnicodeDecodeError exception.