Comparing different types in Python: When you can (and can't), and what you can do about it If you try to