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 serhiy.storchaka
Recipients congma, mark.dickinson, miss-islington, realead, rhettinger, serhiy.storchaka, tim.peters
Date 2021-06-13.13:39:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623591552.52.0.113993098112.issue43475@roundup.psfhosted.org>
In-reply-to
Content
> Maybe a new comparator is called for (like PY_EQ_FOR_HASH_COLLECTION), which would yield float("nan") equivalent to float("nan") and which should be used in hash-set/dict?

It is difficult to do from technical point of view because all rich comparison implementations support currently only 6 operations. If you call tp_richcomp with something else it will crash. So we need to add new slot tp_richcomp_ex and complex logic to call either tp_richcomp_ex or tp_richcomp and correctly handle inheritance. It is too high bar.

> Does GH-26679 need to be backported to the 3.10 branch?

I thought that the original change was 3.11 only, but seems it was merged before the split of the 3.10 branch. So PR 26679 needs to be backported. I would add a NEWS entry if I knew this.
History
Date User Action Args
2021-06-13 13:39:12serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, miss-islington, realead, congma
2021-06-13 13:39:12serhiy.storchakasetmessageid: <1623591552.52.0.113993098112.issue43475@roundup.psfhosted.org>
2021-06-13 13:39:12serhiy.storchakalinkissue43475 messages
2021-06-13 13:39:12serhiy.storchakacreate