Implement comparison operators. · pythonnet/pythonnet@40f7086 · GitHub
Skip to content

Commit 40f7086

Browse files
abessenfilmor
authored andcommitted
Implement comparison operators.
1 parent fb23dd1 commit 40f7086

3 files changed

Lines changed: 142 additions & 39 deletions

File tree

src/runtime/classbase.cs

Lines changed: 97 additions & 36 deletions

src/runtime/runtime.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ internal static int AtExit()
404404
internal const int Py_EQ = 2;
405405
internal const int Py_NE = 3;
406406
internal const int Py_GT = 4;
407+
internal const int Py_GE = 5;
407408
internal static IntPtr _PyObject_NextNotImplemented;
408409
#endif
409410

src/tests/test_class.py

Lines changed: 44 additions & 3 deletions

0 commit comments

Comments
 (0)