In plain Python we can write something like
>>> (0.5).as_integer_ratio()
(1, 2)
Is there a way to get this result through Python C API? The only thing I see is an implementation.
In plain Python we can write something like
>>> (0.5).as_integer_ratio()
(1, 2)
Is there a way to get this result through Python C API? The only thing I see is an implementation.