Commits

Jonathan Eunice  committed c8a7372

fixed contenthash bug

  • Participants
  • Parent commits e02bd39

Comments (0)

Files changed (2)

File intensional/contenthash.py

     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)
         if code:
             hashval ^= hash(code)
-    elif considering & ATTRIBUTES: 
+    
+    if not code and considering & ATTRIBUTES: 
         try:
             hashval ^= chash(obj.__dict__, considering, seen)
         except AttributeError:
 
 setup(
     name='intensional',
-    version=verno("0.219"),
+    version=verno("0.222"),
     author='Jonathan Eunice',
     author_email='jonathan.eunice@gmail.com',
     description='Intensional sets in Python',