Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython2
/
1dabdb25f83d55737c2154b63bc463240fd7bc03
/
Lib
/
rational.py
1dabdb2
Make the Rational constructor accept '3.' and '.2' as well as '3.2'.
by Mark Dickinson
· 17 years ago
dc2964b
Roll back r60248. It's useful to encourage users not to change Rational
by Jeffrey Yasskin
· 17 years ago
2df20a3
Minor wordsmithing on docstring
by Raymond Hettinger
· 17 years ago
38db364
Remove unused to-be-magic methods from Rational per issue 1968. Do not port
by Jeffrey Yasskin
· 17 years ago
b23dea6
Added more documentation on how mixed-mode arithmetic should be implemented. I
by Jeffrey Yasskin
· 17 years ago
3ea7b41
Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because
by Jeffrey Yasskin
· 17 years ago
63c77b6
Docstring nit
by Raymond Hettinger
· 17 years ago
3e1a373
Make rational.gcd() public and allow Rational to take decimal strings, per
by Jeffrey Yasskin
· 17 years ago
9ec7bc3
More design notes
by Raymond Hettinger
· 17 years ago
9c6d81f
Fix-up signature for approximation.
by Raymond Hettinger
· 17 years ago
7ea8225
Add one other review comment.
by Raymond Hettinger
· 17 years ago
921cb5d
Mark todos and review comments.
by Raymond Hettinger
· 17 years ago
a621674
Add support for copy, deepcopy, and pickle.
by Raymond Hettinger
· 17 years ago
909e334
More code cleanup. Remove unnecessary indirection to useless class methods.
by Raymond Hettinger
· 17 years ago
5b0e27e
Add support for int(r) just like the other numeric classes.
by Raymond Hettinger
· 17 years ago
7a6eacd
Clean-up and speed-up code by accessing numerator/denominator directly. There's no reason to enforce readonliness
by Raymond Hettinger
· 17 years ago
f336c8b
Cleanup
by Raymond Hettinger
· 17 years ago
eb46190
Minor clean-up and more tests.
by Raymond Hettinger
· 17 years ago
cf10926
Add first-cut at an approximation function (still needs rounding tweaks). Add continued fraction conversions.
by Raymond Hettinger
· 17 years ago
45169fb
Several tweaks: add construction from strings and .from_decimal(), change
by Jeffrey Yasskin
· 17 years ago
d7b0033
Add rational.Rational as an implementation of numbers.Rational with infinite
by Jeffrey Yasskin
· 17 years ago