[Python-Dev] PEP239 (Rational Numbers) Reference Implementation and new issues

Tim Peters tim.one at comcast.net
Thu Oct 3 15:36:49 EDT 2002


[Skip Montanaro]
> Dunno about NaN, but wouldn't rational(Inf) be 1/0?

+-Inf  <->  +-1/0
+-0    <->  +-0/1
NaN    <->    0/0

work nicely in practice, provided you want to bother at all <wink>.




More information about the Python-list mailing list