Re: [Python-ideas] Fix some special cases in Fractions?

On 2018-08-30 11:11, Jonathan Fine wrote:
If anyone has time and ready access, it would help to know what https://www.sympy.org/en/index.html does with this.
It handles such powers symbolically, not actually returning a numerical result:

Jeroen Demeyer wrote
Thank you very much for this, Jeroen. Most helpful. Perhaps revising https://docs.python.org/3/library/fractions.html, to mention sympy's symbolic Rational number class, would meet the original poster's request. Neil Girdhar - how does this sound to you? Short of migrating part of sympy into Python's standard library, I don't know what else we could reasonably do. -- Jonathan

Jeroen Demeyer wrote
Thank you very much for this, Jeroen. Most helpful. Perhaps revising https://docs.python.org/3/library/fractions.html, to mention sympy's symbolic Rational number class, would meet the original poster's request. Neil Girdhar - how does this sound to you? Short of migrating part of sympy into Python's standard library, I don't know what else we could reasonably do. -- Jonathan
participants (2)
-
Jeroen Demeyer
-
Jonathan Fine