Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
ad1df37e
Commit
ad1df37e
authored
6 years ago
by
Igor Danielewicz
Browse files
Options
Downloads
Patches
Plain Diff
Added is_same function to SWIG
parent
7fa25921
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/token.i
+4
-0
4 additions, 0 deletions
swig/token.i
with
4 additions
and
0 deletions
swig/token.i
+
4
−
0
View file @
ad1df37e
...
...
@@ -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
%}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment