This commit is contained in:
Thomas Krijnen
2017-06-24 13:36:26 +02:00
parent 7eb1346407
commit 7c1cf6ebd0
+5
View File
@@ -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