rational numbers

Carsten Haese carsten at uniqsys.com
Tue Jan 17 11:29:48 EST 2006


On Tue, 2006-01-17 at 11:22, Paul Rubin wrote:
> Schüle Daniel <uval at rz.uni-karlsruhe.de> writes:
> > does anybody know modules which make rational numbers available?
> 
> Try gmpy.mpq (google for gmpy).
> 
> > and are there considerations to add them to the core, like
> > complex numbers (maybe in Python 3)
> 
> I don't think it's been discussed much.

Somebody must have discussed it. There is a rejected PEP for adding a
Rational type to python:

http://www.python.org/peps/pep-0239.html

-Carsten





More information about the Python-list mailing list