-
Notifications
You must be signed in to change notification settings - Fork 46
refactor Python API to be more pythonic - part 2 #321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor Python API to be more pythonic - part 2 #321
Conversation
fa239f2
to
9201557
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, added 2 minor comments/questions.
|
||
|
||
def GetCompletions(self, *args): | ||
return call_deprecated_method("GetCompletions", "complete", self.complete, *args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't get_completions
better ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
In a previous change I named it like this:
- complete_prefix
- complete_multiword
- complete_fuzzy
avoiding prefixes like get_
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, okie ...
This PR is a continuation of #267, it changes more API's to be more consistent with naming in python. The old naming is still possible, but causes a deprecation message.