[pypy-svn] r35258 - pypy/dist/pypy/rpython/ootypesystem

antocuni at codespeak.net antocuni at codespeak.net
Mon Dec 4 16:47:06 CET 2006


Author: antocuni
Date: Mon Dec  4 16:47:05 2006
New Revision: 35258

Modified:
   pypy/dist/pypy/rpython/ootypesystem/rclass.py
Log:
Sorry, forgot this in the last check-in.




Modified: pypy/dist/pypy/rpython/ootypesystem/rclass.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/rclass.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/rclass.py	Mon Dec  4 16:47:05 2006
@@ -207,7 +207,7 @@
             else:
                 s_value = attrdef.s_value
                 if isinstance(s_value, annmodel.SomePBC):
-                    if s_value.getKind() == description.MethodDesc:
+                    if len(s_value.descriptions) > 0 and s_value.getKind() == description.MethodDesc:
                         # attrdef is for a method
                         if mangled in allclassattributes:
                             raise TyperError("method overrides class attribute")


More information about the pypy-svn mailing list