Guido van Rossum <gu...@python.org> added the comment:

Actually numbers.Rational is a virtual base class for int, so it won't 
automagically appear there.

Adding it to the math module is inferior because for non-rational types (e.g. 
alternative float implementations) the math module won't have the knowledge 
about internals to implement it -- and casting to float() would defeat the 
purpose.

----------

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

Reply via email to