]> granicus.if.org Git - python/commit
Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because
authorJeffrey Yasskin <jyasskin@gmail.com>
Sun, 27 Jan 2008 23:08:46 +0000 (23:08 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Sun, 27 Jan 2008 23:08:46 +0000 (23:08 +0000)
commit3ea7b41b5805c60a05e697211d0bfc14a62a19fb
tree48fdcdbf67360b87d22314bca19599558b5d7e28
parent56eadd9d0d37d53f530f98878e77786743bebb0f
Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because
it's useful outside of rational numbers.

This is my first C code that had to do anything significant. Please be more
careful when looking over it.
Lib/rational.py
Lib/test/test_builtin.py
Objects/floatobject.c