Tobiah wrote: >>>> print float(3.0) is float(3.0) > True >>>> print float(3.0 * 1.0) is float(3.0) > False >>>>
Thumb rule: Never compare strings, numbers or tuples with "is". Only compare an object with a singleton like a type or None. "is" is not a comparison operator. Christian -- http://mail.python.org/mailman/listinfo/python-list