commit | 45169fbc800d573ddd01d3f440f264caaa93c622 | [log] [tgz] |
---|---|---|
author | Jeffrey Yasskin <jyasskin@gmail.com> | Sat Jan 19 09:56:06 2008 +0000 |
committer | Jeffrey Yasskin <jyasskin@gmail.com> | Sat Jan 19 09:56:06 2008 +0000 |
tree | b565b74e43fd651e0ee163faf7c406690e5fbbf0 | |
parent | bf4c7c8c0d851b239425b53b676c71a75c7d40c8 [diff] |
Several tweaks: add construction from strings and .from_decimal(), change __init__ to __new__ to enforce immutability, and remove "rational." from repr and the parens from str.