[issue22238] fractions.gcd results in infinite loop when nan or inf given as parameter.

Raymond Hettinger report at bugs.python.org
Wed Aug 20 22:01:12 CEST 2014


Raymond Hettinger added the comment:

Also note that the fractions module is primarily about rational numbers (integer ratios).  The int type has no concept of NaNs and Infs, so I don't see any reason why the fractions module should cater to them.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22238>
_______________________________________


More information about the Python-bugs-list mailing list