This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Ben Burrill, mark.dickinson, rhettinger
Date 2017-10-06.00:58:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507251492.02.0.213398074469.issue31707@psf.upfronthosting.co.za>
In-reply-to
Content
The fractions module isn't easily extended to support this proposal.  It was designed around a gcd() step and assumes integer numerators and denominators throughout.  Also, the Fraction class is registered with numbers.Rational() which implies some specific behaviors including inoperability with various other classes.

In additionl, the standard library also doesn't yet support unevaluated rationals like SquareRoot(3).  I suggest looking at the sympy module which may already have everything you need.
History
Date User Action Args
2017-10-06 00:58:12rhettingersetrecipients: + rhettinger, mark.dickinson, Ben Burrill
2017-10-06 00:58:12rhettingersetmessageid: <1507251492.02.0.213398074469.issue31707@psf.upfronthosting.co.za>
2017-10-06 00:58:11rhettingerlinkissue31707 messages
2017-10-06 00:58:10rhettingercreate