-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
do not include parent in hash of parking functions #34824
Comments
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Author: Martin Rubey |
comment:3
I expect that you'll have to redefine equality comparison as well: https://docs.python.org/3/reference/datamodel.html#object.__hash__ You could try to override |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
I do not understand this - shouldn't the hash be inherited from Is this because of
|
comment:8
No, for
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
See also https://groups.google.com/g/sage-devel/c/0J2jiBh5AvE |
comment:11
LGTM. This will make handling equality easier for subclasses. Note that this will cause a slight performance regression when there is hashing involving things that are represented by the same list but should not be compared. For example |
Reviewer: Travis Scrimshaw |
Changed branch from u/mantepse/do_not_include_parent_in_hash_of_parking_functions to |
We do not want the following:
CC: @nthiery
Component: combinatorics
Author: Martin Rubey
Branch/Commit:
49ff03d
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/34824
The text was updated successfully, but these errors were encountered: