[issue13355] random.triangular error when low = high=mode

Serhiy Storchaka report at bugs.python.org
Wed Feb 6 16:37:42 CET 2013


Serhiy Storchaka added the comment:

> One minor comment: I'd prefer it if the second test were "elif low ==
> high:", since that more obviously guards against the division by zero.

It is written deliberately. What if low == high != mode?

----------

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


More information about the Python-bugs-list mailing list