Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

This will not solve the problem completely, because other rational numbers do 
not have as_integer_ratio().

But all rational numbers have the numerator and denominator properties. See 
issue37822 for more general solution.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37819>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to