]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-140938: Raise ValueError for infinite inputs to stdev/pstdev (GH-141531...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 15 Nov 2025 02:58:40 +0000 (03:58 +0100)
committerGitHub <noreply@github.com>
Sat, 15 Nov 2025 02:58:40 +0000 (18:58 -0800)
commit8a67e3c2b0fb1c15fee1c7b0fe7e73b80b5467f8
treea9353fd6fdd6775c68e61c972dc3b9fbf2800bfc
parent17e7aad5e34965cbadd45f41f5d48cfd2aca1adb
[3.14] gh-140938: Raise ValueError for infinite inputs to stdev/pstdev (GH-141531) (#141575)

gh-140938: Raise ValueError for infinite inputs to stdev/pstdev (GH-141531)

Raise ValueError for infinite inputs to stdev/pstdev
(cherry picked from commit f0a8bc737ab2f04d4196eee154cb1e17e26ad585)

---

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/statistics.py
Lib/test/test_statistics.py
Misc/NEWS.d/next/Library/2025-11-13-14-51-30.gh-issue-140938.kXsHHv.rst [new file with mode: 0644]