summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-08 18:58:33 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-08 18:58:33 (GMT)
commit8ff1099684ae24dfc253d14e46d65a6c2023d537 (patch)
treee096ec79f6536cbed00492674ab1403706ac70cd /Lib
parent183cd1fae37f6f71eebc6bba626774bce8e867d2 (diff)
downloadcpython-8ff1099684ae24dfc253d14e46d65a6c2023d537.zip
cpython-8ff1099684ae24dfc253d14e46d65a6c2023d537.tar.gz
cpython-8ff1099684ae24dfc253d14e46d65a6c2023d537.tar.bz2
One more conversion from pow() to **.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/random.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py
index c57dc2b..e4073dd 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 --------------------