Skip to content
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

Specify explicit hash_constructor in call to unordered_hash #849

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions loopy/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,8 @@ class LoopyKeyBuilder(KeyBuilderBase):
update_for_list = KeyBuilderBase.update_for_tuple
update_for_set = KeyBuilderBase.update_for_frozenset

def update_for_dict(self, key_hash, key):
from pytools import unordered_hash
unordered_hash(
key_hash,
(self.rec(self.new_hash(), (k, v)).digest()
for k, v in key.items()))

update_for_defaultdict = update_for_dict
update_for_dict = KeyBuilderBase.update_for_immutabledict
update_for_defaultdict = KeyBuilderBase.update_for_immutabledict

def update_for_BasicSet(self, key_hash, key): # noqa
from islpy import Printer
Expand Down
Loading