Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: const-correctness Changeset: r66940:b3d07d1dab74 Date: 2013-09-13 21:52 +0200 http://bitbucket.org/pypy/pypy/changeset/b3d07d1dab74/
Log: Fix diff --git a/rpython/rtyper/lltypesystem/lltype.py b/rpython/rtyper/lltypesystem/lltype.py --- a/rpython/rtyper/lltypesystem/lltype.py +++ b/rpython/rtyper/lltypesystem/lltype.py @@ -128,7 +128,7 @@ object.__setattr__(self, attr, nvalue) def _enforce(self, value): - if typeOf(value) != self: + if not isConvertibleFrom(self, typeOf(value)): raise TypeError return value _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit