On Thu, Jan 5, 2012 at 7:09 AM, Lucas Vickers <lucasvick...@gmail.com> wrote:
> 2) Is there a way to error when comparing variables of different types?

Yep. Use Python version 3.

>>> 1<"1"
Traceback (most recent call last):
  File "<pyshell#88>", line 1, in <module>
    1<"1"
TypeError: unorderable types: int() < str()

Chris Angelico
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to