Serhiy Storchaka added the comment:

Note the catch on 2.7. triangular(10, 10.0) returns 10.0, but triangular(10, 
10.0, 10.0) returns 10. If then you divide by the result...

I proposed change "return low" to "return low + 0.0".

----------

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

Reply via email to