Ryan Gabbard
Ryan Gabbard
@Stvad : I second @johnlawrenceaspden that this can be a big problem; in my case I'm trying to coordinate an evolving deck between five people, all of whom need different...
@ohare93 : I was just cloning this repository to work on this task this week. :-)
@ohare93 : Unfortunately I didn't get the chance to work on it when I hoped I would. :-( I might have some time over Christmas break, but I can't promise...
@EdwardJB : The behavior seems more general than this. ``` import attr @attr.s(hash=True) class A: pass @attr.s(hash=True) class B: pass hash(A) == hash(B) Out[5]: False hash(A()) == hash(B()) Out[6]: True...
It seems good to at least rename `type_hash` to a less misleading name in the code, though.
And the footnote on http://www.attrs.org/en/stable/hashing.html#id1 which says "The hash is computed by hashing a tuple that consists of an unique id for the class plus all attribute values" doesn't match...
@EdwardJB : well, that's up to @hynek , etc. I'm just a random person. :-) . But I'm a little curious what your use case is where this matters? The...
@hynek : What do you think of this?
hmm - looking at https://github.com/python-attrs/attrs/blob/master/src/attr/_make.py#L1079 it looks like our equality methods currently don't do an `is` check to short-circuit comparisons. This is pretty standard in Java equality methods and can...
@hynek : Which thing is the "that" in "I don't think that would be great"? Did you mean "I don't think adding an identity check to short-circuit would be good...