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 scoder
Recipients mark.dickinson, rhettinger, scoder, serhiy.storchaka, skrah, steven.daprano, tim.peters
Date 2018-07-28.20:27:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532809639.42.0.56676864532.issue33089@psf.upfronthosting.co.za>
In-reply-to
Content
>> Commutativity guarantees can be delivered by sorting arguments before summation.

> No thanks -- that's too expensive for such a small payoff.

Since I don't really see people use this on vectors with hundreds of dimensions, let me still suggest using insertion sort. It's simple and short to implement into the current code (right in the first loop) and should be plenty fast for any reasonable usage of this function.
History
Date User Action Args
2018-07-28 20:27:19scodersetrecipients: + scoder, tim.peters, rhettinger, mark.dickinson, steven.daprano, skrah, serhiy.storchaka
2018-07-28 20:27:19scodersetmessageid: <1532809639.42.0.56676864532.issue33089@psf.upfronthosting.co.za>
2018-07-28 20:27:19scoderlinkissue33089 messages
2018-07-28 20:27:19scodercreate