Skip to content
This repository was archived by the owner on Mar 8, 2018. It is now read-only.

BACKWARDS INCOMPATIBLE: Hash instances by object id rather than value #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rouge8
Copy link
Contributor

@rouge8 rouge8 commented Aug 18, 2017

This patch updates our usage of attr.s to set hash=False, so that we use id-based hashing instead of value-based hashing.

attrs 17.1.0 changed the default for hash to None, which makes objects unhashable. We set hash=False so that we can continue to use objects as keys in dictionaries, but without attempting to hash by value.

http://www.attrs.org/en/stable/changelog.html

@rouge8 rouge8 force-pushed the feature/hash-by-id branch from 6111274 to a87acbf Compare August 18, 2017 23:14
@rouge8 rouge8 mentioned this pull request Aug 18, 2017
3 tasks
This patch updates our usage of `attr.s` to set `hash=False`, so that we
use id-based hashing instead of value-based hashing.

attrs 17.1.0 changed the default for `hash` to `None`, which makes
objects unhashable.  We set `hash=False` so that we can continue to use
objects as keys in dictionaries, but without attempting to hash by
value.

http://www.attrs.org/en/stable/changelog.html
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant