-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was motivated to work around pandas not repr'ing `frozendict` elements properly (seen in #8687), but while poking at that I found: - The existing code was unnecessarily nested (the actual dict was boxed in a `MappingProxyType` which was boxed in a `FrozenDict` - we can do better by just using storing the data in the `FrozenDict` itself). - There was a bug in the hash implementation where the order mattered, meaning that `hash(frozendict(a=1, b=2)) != hash(frozendict(b=2, a=1))`. This has since been fixed. Fixes #8687. --------- Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Co-authored-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
- Loading branch information
1 parent
db79aae
commit 32b7514
Showing
4 changed files
with
16 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters