diff options
author | Skip Montanaro <skip@pobox.com> | 2001-02-15 22:15:14 +0000 |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2001-02-15 22:15:14 +0000 |
commit | d95497014dfaf13362efef69cae5b0ef1343b91a (patch) | |
tree | 983475a2129c410599fb07bf777a599ad23dcaac /Lib/random.py | |
parent | e57795f35cfdda6978125fde160b4685127d92aa (diff) | |
download | cpython-d95497014dfaf13362efef69cae5b0ef1343b91a.tar.gz |
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.py | 6 |
1 files changed, 6 insertions, 0 deletions
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: |