Hi David,

> A toy example with a half dozen operations won't make huge fractions. A
> loop over a million operations will often be a gigantic memory hog.

I do not propose to do that, and I agree that it would be stupid. Usually, the 
fraction gets very quickly converted into a float, and your millions of 
operations will be done with floats.

Now I cannot guarantee that this is always the case, but doing millions of 
operations in Python directly is usually very slow anyways, so people tend to 
use numpy or alike. And those use floats, and I am not proposing to change that.

But maybe I am all wrong and there is loads of code out there that would suffer 
from your problem, in this case, could you show me an example?

Cheers

Martin
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/7GOCRAANWQL3G7XUSTPXBZSZ4IG5FIPC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to