summaryrefslogtreecommitdiffstats
path: root/Lib/statistics.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-04-23 08:46:18 (GMT)
committerGitHub <noreply@github.com>2019-04-23 08:46:18 (GMT)
commitfb8c7d53326d137785ca311bfc48c8284da46770 (patch)
tree8f7bacab2a8391a0140e926cfe9ba9896da33b49 /Lib/statistics.py
parent7280048690244e73b13f4f68b96c244bcb5434e8 (diff)
downloadcpython-fb8c7d53326d137785ca311bfc48c8284da46770.zip
cpython-fb8c7d53326d137785ca311bfc48c8284da46770.tar.gz
cpython-fb8c7d53326d137785ca311bfc48c8284da46770.tar.bz2
bpo-36018: Make "seed" into a keyword only argument (GH-12921)
Diffstat (limited to 'Lib/statistics.py')
-rw-r--r--Lib/statistics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/statistics.py b/Lib/statistics.py
index 4a0978c..19db8e8 100644
--- a/Lib/statistics.py
+++ b/Lib/statistics.py
@@ -797,7 +797,7 @@ class NormalDist:
xbar = fmean(data)
return cls(xbar, stdev(data, xbar))
- def samples(self, n, seed=None):
+ def samples(self, n, *, seed=None):
'Generate *n* samples for a given mean and standard deviation.'
gauss = random.gauss if seed is None else random.Random(seed).gauss
mu, sigma = self.mu, self.sigma