From 7c1cf6ebd0269a1b5fdeb536471e76662b119db5 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 24 Jun 2017 13:36:26 +0200 Subject: [PATCH] Fix #233 --- src/ifcwrap/IfcPython.i | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ifcwrap/IfcPython.i b/src/ifcwrap/IfcPython.i index 3656792cc2..0a9dffbd2e 100644 --- a/src/ifcwrap/IfcPython.i +++ b/src/ifcwrap/IfcPython.i @@ -50,6 +50,11 @@ %include "std_string.i" %include "exception.i" +// General python-specific rename rules for comparison operators. +// Mostly to silence warnings, but might be of use some time. +%rename("__eq__") operator ==; +%rename("__lt__") operator <; + %exception { try { $action