-
Notifications
You must be signed in to change notification settings - Fork 180
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
[FEAT] Add floor division #3064
Conversation
CodSpeed Performance ReportMerging #3064 will not alter performanceComparing Summary
|
assigning @colin-ho for review |
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.
Great first implementation @ConeyLiu ! Left some comments regarding performance and testing.
expr = Expression._to_expression(other) | ||
return Expression._from_pyexpr(self._expr // expr._expr) | ||
|
||
def __rfloordiv__(self, other: object) -> Expression: |
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.
Is this used / tested anywhere?
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.
This follows the __truediv__
and __rtruediv__
. Currently only used in UT.
Thanks @colin-ho for your reviews. Let me address your comments later. |
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.
Looks good, thanks @ConeyLiu !
Thanks @colin-ho |
Close #2418