Steven D'Aprano <ste...@remove.this.cybersource.com.au> writes:

Besides, one can legitimately disagree that 2/3 => 0 is the wrong thing
to do. It's the right thing to do if you're doing integer maths.

True, but the question is how best to decide whether the
programmer wants to do integer maths.

Deciding based on the types of the operands is okay in a
statically typed language. But it's asking for trouble in
a dynamically-typed language, especially where it's common
practice to use ints as a substitute for floats that
happen to have integer values.

EIBTI in this case.

--
Greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to