summaryrefslogtreecommitdiffstats
path: root/Lib/rational.py
Commit message (Expand)AuthorAgeFilesLines
* Make int() and long() fall back to __trunc__(). See issue 2002.Jeffrey Yasskin2008-02-041-2/+0
* Make the Rational constructor accept '3.' and '.2' as well as '3.2'.Mark Dickinson2008-02-021-3/+12
* Roll back r60248. It's useful to encourage users not to change RationalJeffrey Yasskin2008-02-011-3/+11
* Minor wordsmithing on docstringRaymond Hettinger2008-01-311-8/+7
* Remove unused to-be-magic methods from Rational per issue 1968. Do not portJeffrey Yasskin2008-01-311-34/+0
* Added more documentation on how mixed-mode arithmetic should be implemented. IJeffrey Yasskin2008-01-311-12/+74
* Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() becauseJeffrey Yasskin2008-01-271-55/+1
* Docstring nitRaymond Hettinger2008-01-271-1/+1
* Make rational.gcd() public and allow Rational to take decimal strings, perJeffrey Yasskin2008-01-271-15/+22
* More design notesRaymond Hettinger2008-01-251-0/+4
* Fix-up signature for approximation.Raymond Hettinger2008-01-251-5/+6
* Add one other review comment.Raymond Hettinger2008-01-251-1/+1
* Mark todos and review comments.Raymond Hettinger2008-01-251-0/+13
* Add support for copy, deepcopy, and pickle.Raymond Hettinger2008-01-251-0/+15
* More code cleanup. Remove unnecessary indirection to useless class methods.Raymond Hettinger2008-01-241-15/+15
* Add support for int(r) just like the other numeric classes.Raymond Hettinger2008-01-241-0/+2
* Clean-up and speed-up code by accessing numerator/denominator directly. Ther...Raymond Hettinger2008-01-241-11/+3
* CleanupRaymond Hettinger2008-01-241-3/+1
* Minor clean-up and more tests.Raymond Hettinger2008-01-241-2/+4
* Add first-cut at an approximation function (still needs rounding tweaks). Ad...Raymond Hettinger2008-01-241-0/+36
* Several tweaks: add construction from strings and .from_decimal(), changeJeffrey Yasskin2008-01-191-12/+64
* Add rational.Rational as an implementation of numbers.Rational with infiniteJeffrey Yasskin2008-01-151-0/+410