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 tags found
No related merge requests found
...@@ -79,6 +79,10 @@ namespace Corpus2 { ...@@ -79,6 +79,10 @@ namespace Corpus2 {
%pythoncode %{ %pythoncode %{
def __ne__(self, other): def __ne__(self, other):
return not self.__eq__(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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment