Integer multiplication overflow.

Fredrik Lundh effbot at telia.com
Sun Oct 8 07:29:55 EDT 2000


Alex Martelli wrote:
> It doesn't have unlimited-precision rationals in the language or
> standard library (I don't know why -- it IS a strange omission)

there's an implementation in the standard distribution:

    Demo/classes/Rat.py

if it's good enough (I cannot tell), and someone contributes some
documentation, I'm sure it could be added to the standard library
in 2.1.

(it's too late for 2.0; the 2.0 final code base is frozen, and a
release candidate is being prepared.  stay tuned).

</F>




More information about the Python-list mailing list