[Python-Dev] PEP239 (Rational Numbers) Reference Implementation and new issues
Paul Rubin
phr-n2002b at NOSPAMnightsong.com
Thu Oct 3 11:13:04 EDT 2002
python-pep at ccraig.org (Christopher A. Craig) writes:
> That is, of course, much more permissive than if we coerced the other
> way and had rational(x)==float(x) iff rational(x)==rational(float(x)).
I don't think you can do it that way without kludges to deal with
rational(NaN), rational(Inf), etc.
More information about the Python-list
mailing list