mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 16:14:03 +08:00
e19f02a2ec
A cython __richcmp__ function isn't allowed to assume that its first argument is the same as the type of the class to which it belongs, so our code needs to account for either of its two arguments being of the wrong type. Furthermore, the correct way for __richcmp__ to handle when it doesn't know how to do a comparison is to return NotImplemented.