Author: mattip <[email protected]>
Branch: missing-ndarray-attributes
Changeset: r60870:17baab38318a
Date: 2013-02-04 19:23 +0200
http://bitbucket.org/pypy/pypy/changeset/17baab38318a/
Log: reanable exception for PBC of mixin
diff --git a/rpython/annotator/bookkeeper.py b/rpython/annotator/bookkeeper.py
--- a/rpython/annotator/bookkeeper.py
+++ b/rpython/annotator/bookkeeper.py
@@ -447,9 +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 for class %r" % x)
+ 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