1. Andrews Medina
  2. pypy-br

Commits

Maciej Fijalkowski  committed 38a4717

Make this assert explain what it really means. Took me a day

  • Participants
  • Parent commits ba2ad0e
  • Branches default

Comments (0)

Files changed (1)

File rpython/rtyper/rpbc.py

View file
  • Ignore whitespace
 
         im_selves = []
         for desc in s_pbc.descriptions:
-            assert desc.funcdesc is self.funcdesc
+            assert desc.funcdesc is self.funcdesc, "You can't mix a set of methods on a frozen PBC in RPython that are different underlaying functions"
             im_selves.append(desc.frozendesc)
 
         self.s_im_self = annmodel.SomePBC(im_selves)