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

2014-08-20 Thread Mark Dickinson
Mark Dickinson added the comment: I agreed with Raymond. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2014-08-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2014-08-20 Thread Raymond Hettinger
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. -- ___

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

2014-08-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this is an actual problem in practice and isn't worth mucking up clear and beautiful code. -- priority: normal -> low ___ Python tracker _

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

2014-08-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2014-08-20 Thread Robert Snoeberger
New submission from Robert Snoeberger: >>> import fractions >>> fractions.gcd(16, float('inf')) Traceback (most recent call last): File "", line 1, in fractions.gcd(16, float('inf')) File "C:\Python34-32bit\lib\fractions.py", line 24, in gcd a, b = b, a%b KeyboardInterrupt >>> fracti