Issue 26977: Unnecessary line in statistics.pvariance (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/71164

classification

Title: Unnecessary line in statistics.pvariance
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.6

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Ian Foote, python-dev, steven.daprano
Priority: normal Keywords:

Created on 2016-05-08 11:56 by Ian Foote, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg265131 - (view) Author: Ian Foote (Ian Foote) Date: 2016-05-08 11:56
In statistics.pvariance, the sum of squares helper function (_ss) is called twice and the first return value is unused: https://github.com/python/cpython/blob/9043c80b0daaddb5bff1e37432d503910506727f/Lib/statistics.py#L596
msg265133 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-05-08 12:14
New changeset 2bf4a02f3570 by Steven D'Aprano in branch 'default': Issue 26977, remove unneeded line in pvariance (duplicate call to _ss). https://hg.python.org/cpython/rev/2bf4a02f3570
msg265134 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2016-05-08 12:16
Thanks Ian! I can't believe I looked at that function earlier today and couldn't see that!
msg265287 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-05-11 01:53
New changeset 6f27dbc55f10 by Steven D'Aprano in branch '3.5': Issue 26977, remove unneeded line in pvariance (duplicate call to _ss). https://hg.python.org/cpython/rev/6f27dbc55f10 New changeset 3c75707045f5 by Steven D'Aprano in branch 'default': Branch merge for issue 26977 https://hg.python.org/cpython/rev/3c75707045f5
msg265289 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-05-11 03:01
New changeset 87130512ef34 by Steven D'Aprano in branch '3.5': NEWS message for issue #26977. https://hg.python.org/cpython/rev/87130512ef34 New changeset 39faad3cd626 by Steven D'Aprano in branch 'default': Merge NEWS update from 3.5 for issue #26977. https://hg.python.org/cpython/rev/39faad3cd626
History
Date User Action Args
2022-04-11 14:58:30 admin set github: 71164
2016-05-11 03:01:58 python-dev set messages: +
2016-05-11 01:53:26 python-dev set messages: +
2016-05-08 12:29:11 berker.peksag set resolution: fixed
2016-05-08 12:16:50 steven.daprano set status: open -> closednosy: + steven.dapranomessages: + stage: resolved
2016-05-08 12:14:57 python-dev set nosy: + python-devmessages: +
2016-05-08 11:56:09 Ian Foote create