Issue 2934: set() comparisons do not play well with others

Issue2934

Created on 2008-05-21 13:19 by ncoghlan, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg67152 - (view) Author: Alyssa Coghlan (ncoghlan) * (Python committer) Date: 2008-05-21 13:19
The rich compare implementation for set objects raises TypeError
directly instead of returning NotImplemented to allow the other type
involved in the comparison a chance at handling the operation.
msg67153 - (view) Author: Alyssa Coghlan (ncoghlan) * (Python committer) Date: 2008-05-21 13:23
Eh, never mind, raising the TypeError explicitly is necessary due to the
misbehaviour of the default comparisons in 2.x.

I'll work around the problem in my test case.
History
Date User Action Args
2022-04-11 14:56:34adminsetgithub: 47183
2008-05-21 13:23:44ncoghlansetstatus: open -> closed
resolution: not a bug
messages: + msg67153
2008-05-21 13:19:21ncoghlancreate