Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython2
/
9ae080ee5acad3c6207db75843cf1a27f868c540
/
Lib
/
test
/
test_fractions.py
c5f05e4
Patch #2167 from calvin: Remove unused imports
by Christian Heimes
· 17 years ago
1c214d6
Performance optimizations on Fraction's constructor.
by Jeffrey Yasskin
· 17 years ago
5f8bd37
Replace R=fractions.Fraction with F=fractions.Fraction in
by Mark Dickinson
· 17 years ago
e1b8247
Implementation of Fraction.limit_denominator.
by Mark Dickinson
· 17 years ago
cd873fc
Put an extra space into the repr of a Fraction:
by Mark Dickinson
· 17 years ago
d058cd2
Rename rational.Rational to fractions.Fraction, to avoid name clash
by Mark Dickinson
· 17 years ago
[Renamed (89%) from Lib/test/test_rational.py]
27d3394
Oops! 2.6's Rational.__ne__ didn't work.
by Jeffrey Yasskin
· 18 years ago
1dabdb2
Make the Rational constructor accept '3.' and '.2' as well as '3.2'.
by Mark Dickinson
· 18 years ago
dc2964b
Roll back r60248. It's useful to encourage users not to change Rational
by Jeffrey Yasskin
· 18 years ago
ca2b69f
Move __builtins__.trunc() to math.trunc() per
by Jeffrey Yasskin
· 18 years ago
38db364
Remove unused to-be-magic methods from Rational per issue 1968. Do not port
by Jeffrey Yasskin
· 18 years ago
3e1a373
Make rational.gcd() public and allow Rational to take decimal strings, per
by Jeffrey Yasskin
· 18 years ago
9c6d81f
Fix-up signature for approximation.
by Raymond Hettinger
· 18 years ago
a621674
Add support for copy, deepcopy, and pickle.
by Raymond Hettinger
· 18 years ago
5b0e27e
Add support for int(r) just like the other numeric classes.
by Raymond Hettinger
· 18 years ago
eb46190
Minor clean-up and more tests.
by Raymond Hettinger
· 18 years ago
cf10926
Add first-cut at an approximation function (still needs rounding tweaks). Add continued fraction conversions.
by Raymond Hettinger
· 18 years ago
45169fb
Several tweaks: add construction from strings and .from_decimal(), change
by Jeffrey Yasskin
· 18 years ago
d7b0033
Add rational.Rational as an implementation of numbers.Rational with infinite
by Jeffrey Yasskin
· 18 years ago