How about adding rational fraction to Python?

Ross Ridge rridge at caffeine.csclub.uwaterloo.ca
Tue Feb 26 16:59:45 EST 2008


Ross Ridge <rridge at caffeine.csclub.uwaterloo.ca> writes:
> D'Arcy said nothing about natural numbers, and bringing them up adds
> nothing to this discussion.

Paul Rubin  <http://phr.cx@NOSPAM.invalid> wrote:
> The numbers D'Arcy is proposing to operate on that way are natural
> numbers whether he says so or not.

No, the discussion has been about the behaviour of the division operator
in Python when used with Python's integral and floating-point data types.
These data types include many numbers that are not natural numbers.

>Really, the "natural" division operation on integers, if there is one,
>is divmod (which returns a quotient and remainder).

Then either your definition of "natural" is wrong, or the fact that
something is the "natural" way of doing something doesn't mean it should
be done that way in Python.

					Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge at csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //	  



More information about the Python-list mailing list