bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695)

This commit is contained in:
Raymond Hettinger 2020-08-01 01:18:26 -07:00 committed by GitHub
parent cadda52d97
commit 5c3270939c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
Make an algebraic simplification to random.paretovariate(). It now is
slightly less subject to round-off error and is slightly faster. Inputs that
used to cause ZeroDivisionError now cause an OverflowError instead.