Syver Enstad wrote:

> By the way whats wrong with 5/2 = 2 ?
> You have five tennisballs, split them on two persons. Surely they can't
> have more than two tennisballs each.

Nothing's "wrong" with it.  Indeed, a new operator ( // ) was introduced to
explicitly support that very case.  The point of the division change is not that
truncating division is wrong, it's just that it's less intuitive in a fully
dynamic language.  And more importantly, "true" division is necessary for
numeric-type integration -- just as Python will seamlessly overflow from ints
into longs, it will (as I understand it) seamlessly convert to and from floats
as needed (eventually, after details are worked out).  The intent is that
eventually, you'll just have Numbers, and won't need to worry at all about the
internal representation.

Of course, all this is just a rehash of the huge discussions when new division
was proposed, so I will say nothing more on the matter.  :)

Jeff Shannon
Technician/Programmer
Credit International


_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to