]> granicus.if.org Git - python/commit
Several tweaks: add construction from strings and .from_decimal(), change
authorJeffrey Yasskin <jyasskin@gmail.com>
Sat, 19 Jan 2008 09:56:06 +0000 (09:56 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Sat, 19 Jan 2008 09:56:06 +0000 (09:56 +0000)
commit45169fbc800d573ddd01d3f440f264caaa93c622
treeb565b74e43fd651e0ee163faf7c406690e5fbbf0
parentbf4c7c8c0d851b239425b53b676c71a75c7d40c8
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.
Doc/library/rational.rst
Lib/rational.py
Lib/test/test_rational.py