[Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
Christopher A. Craig
list-python@ccraig.org
08 Oct 2002 09:28:27 -0400
"M.-A. Lemburg" <mal@lemburg.com> writes:
> What's so hard about rat(2,3) ?
>
> And if that doesn't look right, simply do:
>
> R = rat(1,1)
>
> 2/R/3
>
> This works without any changes to the language.
My thoughts are moving towards that. I also wouldn't especially mind
seeing rationals added to the standard library instead of the core,
though I'm not sure how that effects Numeric.
The two best suggestions (IMHO) I've seen so far are the above and
Guido's 2/3r where that is actually the int 2 over the rational 3r.
--
Christopher A. Craig <list-python@ccraig.org>
"Going to school make a person educated, any more than going to a
garage makes a person a car" Slashdot