ec.c, field.c: Remove redundant `FOO_pyrichcompare' methods.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 22 Oct 2019 16:53:44 +0000 (17:53 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
commit85bc8b4f2fadf63ead76af4ec6114f78ffd7286f
tree5b598b68adab167b1260156c3dc3fb795249479f
parent1fae937d27b04ee48b15ae442ee7c46cc10511fd
ec.c, field.c: Remove redundant `FOO_pyrichcompare' methods.

The abstract base classes already have the necessary comparison methods,
so there's nothing to be gained by repeating the same methods on
subclasses.  (Indeed, Python might pointlessly allocate more memory for
the corresponding Python-level descriptors, but I haven't checked.)  But
there is something to be lost: Python 3 explicitly clobbers the
`__hash__' methods of subclasses which declare new equality methods.  We
could add duplicates of the hash methods throughout the subclass graph,
but it seems better to delete the pointless equality methods which are
causing the problem.
ec.c
field.c