We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Apparently, being able to customize the hashing of individual fields is something interesting for NumPy users: https://stackoverflow.com/q/74975393/476759
I guess the idea would be to create a __hash__ that looks like this:
__hash__
def __hash__(self): return hash((self.a, custom_hash_for_b(self.b)))
while injecting custom_hash_for_b into eval's globals.
custom_hash_for_b
eval
The text was updated successfully, but these errors were encountered:
Don't be a coward and inject it into __hash__ as a parameter default.
Sorry, something went wrong.
No branches or pull requests
Apparently, being able to customize the hashing of individual fields is something interesting for NumPy users: https://stackoverflow.com/q/74975393/476759
I guess the idea would be to create a
__hash__
that looks like this:while injecting
custom_hash_for_b
intoeval
's globals.The text was updated successfully, but these errors were encountered: