This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients iritkatriel, mark.dickinson, reed, rhettinger, steven.daprano, taleinat, xtreak
Date 2021-08-21.00:41:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629506500.47.0.456272422971.issue39218@roundup.psfhosted.org>
In-reply-to
Content
Removing the assertion and implementing Steven's idea seems like the best way to go:

    sum((y:=(x-c)) * y for x in data)
History
Date User Action Args
2021-08-21 00:41:40rhettingersetrecipients: + rhettinger, mark.dickinson, taleinat, steven.daprano, xtreak, reed, iritkatriel
2021-08-21 00:41:40rhettingersetmessageid: <1629506500.47.0.456272422971.issue39218@roundup.psfhosted.org>
2021-08-21 00:41:40rhettingerlinkissue39218 messages
2021-08-21 00:41:40rhettingercreate