Author Calvin Davis
Recipients Calvin Davis, terry.reedy
Date 2020-07-11.04:02:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594440122.62.0.379783406728.issue41276@roundup.psfhosted.org>
In-reply-to
Content
See attached image

The behavior of min() (and probably max and other related functions) changes depending on the order of the parameters it sorts.

In the image, I sorted two tuples, coordinate points, with the same Y value and different X values. When the X values were in increasing order, finding the minimum x value and minimum y value were the same. However if the list was reversed, finding the minimum x and y values in the list provided different results.
History
Date User Action Args
2020-07-11 04:02:02Calvin Davissetrecipients: + Calvin Davis, terry.reedy
2020-07-11 04:02:02Calvin Davissetmessageid: <1594440122.62.0.379783406728.issue41276@roundup.psfhosted.org>
2020-07-11 04:02:02Calvin Davislinkissue41276 messages
2020-07-11 04:02:02Calvin Daviscreate