Author: Matti Picus <[email protected]>
Branch: missing-ndarray-attributes
Changeset: r60863:75789571ec61
Date: 2013-02-04 12:13 +0200
http://bitbucket.org/pypy/pypy/changeset/75789571ec61/

Log:    allow PBC of mixin class until fixed in default

diff --git a/rpython/annotator/bookkeeper.py b/rpython/annotator/bookkeeper.py
--- a/rpython/annotator/bookkeeper.py
+++ b/rpython/annotator/bookkeeper.py
@@ -447,8 +447,9 @@
             if (x is type(None) or      # add cases here if needed
                 x.__module__ == 'rpython.rtyper.lltypesystem.lltype'):
                 result = SomeType()
-            elif x.__dict__.get('_mixin_', False):
-                raise Exception("Creating a PBC of a mixin class is not 
RPython")
+            #elif x.__dict__.get('_mixin_', False):
+            #    raise Exception("Creating a PBC of a mixin class is "
+            #            "not RPython for class %r" % x)
             else:
                 result = SomePBC([self.getdesc(x)])
         elif callable(x):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to