-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use immutable decorator on DatasetRef and add __hash__.
This makes the comparison-key attributes of DatasetRef into regular attributes instead of properties, while blocking the "ref._id = x" loophole we previously exploited to modify DatasetRefs in place. That makes it safe to define __hash__, and so now we do.
- Loading branch information
Showing
2 changed files
with
74 additions
and
70 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