-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
UniqueRepresentation and hash value #8120
Comments
Changed keywords from none to UniqueRepresentation hash |
comment:2
I just submitted a patch which comply with the documentation. However, since we are in Florent |
Author: Florent Hivert |
comment:3
I'd like to review that patch but I'm missing an example to try. Paul |
comment:5
Hi Paul, Replying to @zimmermann6:
I'm not sure what you want: in the patch you have the following tests example:
If you want more elaborated examples using
|
comment:6
I tried the patch and sage -t * and got the same failures that I get without the patch |
Reviewer: Paul Zimmerman |
comment:7
Replying to @zimmermann6:
So are you waiting for another review ? Or did you simply forgot to check the relevant box ? |
comment:8
no, I was waiting for the "needs review" status. |
comment:9
Just one thing Florent: please fix the following doctest:
so that the reader expects some integer result. Maybe some test like:
could be added. |
comment:10
Replying to @nthiery:
Oups !!! I'm resubmitting a patch with the following diff:
Please re-review... Florent |
Attachment: trac_8120-uniquerep_hash-fh.patch.gz |
comment:11
will do it as soon as my current sage -t * finishes. In the meantime you can click on |
comment:12
Replying to @zimmermann6:
Actually, the precise button I needed to hit was "Submit Changes" ;-) |
comment:13
Nicolas (and also Paul), you didn't comment about the following thought: However, since we are in Anyway, whatever is decided, I suggest to keep it for a forthcomming ticket, since it can raise some backward compatibility issues... |
comment:14
Replying to @hivert:
That sounds good. We should probably include the class of the object in the hash calculation.
Yup. |
comment:15
I did try with the new patch, and it is ok. Thus a positive review. |
comment:16
The ticket number is missing from the commit string. I've refreshed the patch I've applied to 4.3.3.alpha0. |
Merged: sage-4.3.3.alpha0 |
comment:19
Oops! |
Changed reviewer from Paul Zimmerman to Paul Zimmermann |
The documentation of
UniqueRepresentation
saysBut there is no implementation of
__hash__
.I'm adding one.
CC: @zimmermann6 @nthiery
Component: algebra
Keywords: UniqueRepresentation hash
Author: Florent Hivert
Reviewer: Paul Zimmermann
Merged: sage-4.3.3.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/8120
The text was updated successfully, but these errors were encountered: