diff options
| author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-02-23 22:19:01 -0800 |
|---|---|---|
| committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-02-23 22:19:01 -0800 |
| commit | 79fbcc597dfd039d3261fffcb519b5ec5a18df9d (patch) | |
| tree | 9d56ae7f0a317d315533aac7ae2efd425a9efb05 /Lib/statistics.py | |
| parent | e895de3e7f3cc2f7213b87621cfe9812ea4343f0 (diff) | |
| download | cpython-git-79fbcc597dfd039d3261fffcb519b5ec5a18df9d.tar.gz | |
bpo-36018: Make __pos__ return a distinct instance of NormDist (GH-12009)
https://bugs.python.org/issue36018
Diffstat (limited to 'Lib/statistics.py')
| -rw-r--r-- | Lib/statistics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/statistics.py b/Lib/statistics.py index a73001ac55..bf10e19c0d 100644 --- a/Lib/statistics.py +++ b/Lib/statistics.py @@ -762,7 +762,7 @@ class NormalDist: return NormalDist(x1.mu / x2, x1.sigma / fabs(x2)) def __pos__(x1): - return x1 + return NormalDist(x1.mu, x1.sigma) def __neg__(x1): return NormalDist(-x1.mu, x1.sigma) |
