-
Notifications
You must be signed in to change notification settings - Fork 80
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
MinHash.merge() modifies signature inplace -- is it supposed to? #1211
Labels
4.0
issues to address for a 4.0 release
Comments
I see the same behavior, and I agree it feels inconsistent; in the code
base we have both behaviors being used, so I will need to review the
impact of changing this... Thanks for the catch!
|
I mean inplace can be useful when you merge many sigs, but then the return value should be None. Anyway, thanks for looking into this. |
On Tue, Oct 13, 2020 at 12:23:39PM -0700, Adrian Viehweger wrote:
I mean inplace can be useful when you merge many sigs, but then the return value should be None. Anyway, thanks for looking into this.
exactly right :)
The += operator should work, BTW, and may be clearer in your code in this
case.
|
5 tasks
7 tasks
FYI, in #1282 I am explicitly endorsing the in-place behavior of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
Is this behaviour intended?
The text was updated successfully, but these errors were encountered: