define forgotten ne#116
Conversation
There was a problem hiding this comment.
Huh... I thought that __ne__ wasn't necessary in Python 3 (and we're not-intentionally-breaking-but-not-supporting Python 2). From https://docs.python.org/3/reference/datamodel.html#object.__ne__:
For
__ne__(), by default it delegates to__eq__()and inverts the result unless it isNotImplemented.
Does Cython not follow that?
Either way, I have no problem with adding the extra __ne__ method. Doesn't hurt anything. Will merge when AppVeyor finishes.
Codecov Report
@@ Coverage Diff @@
## master #116 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 13
Lines 1125 1127 +2
=========================================
+ Hits 1125 1127 +2
Continue to review full report at Codecov.
|
So inheritance of compiled cython code into python is a bit special 😅 |
while working on #115 , a test started failing with:
Which was due to the fact the
ContactTrajectorydid update__eq__, but not__ne__. This fixes that oversight