-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First stab at implementing hashcode caching (#423) Currently all existing tests pass but no cache_hash tests have yet been added. * Existing hash tests now pass on cache_hash classes * Add towncrier change log * Add documentation for cache_hash * Fixes bug with check that init=True if cache_hash=True * Fix long lines * Fix documentation issues * Add test for cache_hash requiring init * Improve test coverage * Remove now unnecessary 'pass' * Add periods to the end of exception strings * Add test docstrings for cache_hash tests * Clarify documentation of cache_hash * Recommend that hashable classes be frozen * Fix test references for exception messages
- Loading branch information
Showing
9 changed files
with
248 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added ``cache_hash`` option to ``@attr.s`` which causes the hash code to be computed once and stored on the object. |
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
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
Oops, something went wrong.