Skip to content
Snippets Groups Projects
Commit ad1df37e authored by Igor Danielewicz's avatar Igor Danielewicz
Browse files

Added is_same function to SWIG

parent 7fa25921
Branches
No related merge requests found
......@@ -79,6 +79,10 @@ namespace Corpus2 {
%pythoncode %{
def __ne__(self, other):
return not self.__eq__(other)
def is_same(self, other):
"""Check wheter SWIG proxy object points the same underlaying token"""
return self.this == other.this
%}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment