From 0de65807e6bdc5254f5a7e99b2f39adeea6b883b Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Thu, 15 Feb 2001 22:15:14 +0000 Subject: 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) --- Lib/random.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lib/random.py') diff --git a/Lib/random.py b/Lib/random.py index f470402c71..efaf7d6898 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: -- cgit v1.2.1