Need help cloning? Visit
is a free Git and Mercurial client for Windows.
is a free Git and Mercurial client for Mac.
if considering & ID:
hashval ^= _id
+ code = None
if considering & CODE: # CODE is the most important attribute, overriding all others
code = getattr(obj, FUNC_ATTR, None)
hashval ^= hash(code)
- elif considering & ATTRIBUTES:
+ if not code and considering & ATTRIBUTES:
hashval ^= chash(obj.__dict__, considering, seen)