From: Raymond Hettinger Date: Wed, 8 Sep 2010 18:58:33 +0000 (+0000) Subject: One more conversion from pow() to **. X-Git-Tag: v3.2a3~374 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ff1099684ae24dfc253d14e46d65a6c2023d537;p=thirdparty%2FPython%2Fcpython.git One more conversion from pow() to **. --- diff --git a/Lib/random.py b/Lib/random.py index c57dc2b1980d..e4073ddb5a85 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -599,7 +599,7 @@ class Random(_random.Random): # Jain, pg. 495 u = 1.0 - self.random() - return 1.0 / pow(u, 1.0/alpha) + return 1.0 / u ** (1.0/alpha) ## -------------------- Weibull --------------------