Guido van Rossum <> 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 


Python tracker <>
Python-bugs-list mailing list

Reply via email to