[New-bugs-announce] [issue4869] random.expovariate(0.0)

Keith Briggs report at bugs.python.org
Wed Jan 7 17:17:01 CET 2009

New submission from Keith Briggs <kbriggs at users.sourceforge.net>:

random.expovariate(lambd) should handle lambd=0 cleanly, and probably
return a FP infinity.

At the moment it gives:

ZeroDivisionError: float division

components: Extension Modules
messages: 79346
nosy: kbriggs
severity: normal
status: open
title: random.expovariate(0.0)
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list