summaryrefslogtreecommitdiffstats
path: root/Lib/random.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2001-02-15 22:15:14 (GMT)
committerSkip Montanaro <skip@pobox.com>2001-02-15 22:15:14 (GMT)
commit0de65807e6bdc5254f5a7e99b2f39adeea6b883b (patch)
tree914e04ae2a3d31caf9c9731825970dd45c754378 /Lib/random.py
parent04f1d37471d6dde302acedf56ee543fa827c7f29 (diff)
downloadcpython-0de65807e6bdc5254f5a7e99b2f39adeea6b883b.zip
cpython-0de65807e6bdc5254f5a7e99b2f39adeea6b883b.tar.gz
cpython-0de65807e6bdc5254f5a7e99b2f39adeea6b883b.tar.bz2
bunch more __all__ lists
also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
Diffstat (limited to 'Lib/random.py')
-rw-r--r--Lib/random.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/random.py b/Lib/random.py
index f470402..efaf7d6 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -76,6 +76,12 @@ used to "move backward in time":
from math import log as _log, exp as _exp, pi as _pi, e as _e
from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin
+__all__ = ["Random","seed","random","uniform","randint","choice",
+ "randrange","shuffle","normalvariate","lognormvariate",
+ "cunifvariate","expovariate","vonmisesvariate","gammavariate",
+ "stdgamma","gauss","betavariate","paretovariate","weibullvariate",
+ "getstate","setstate","jumpahead","whseed"]
+
def _verify(name, expected):
computed = eval(name)
if abs(computed - expected) > 1e-7: