Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: const-correctness Changeset: r66941:60712d9dbfd3 Date: 2013-09-13 21:54 +0200 http://bitbucket.org/pypy/pypy/changeset/60712d9dbfd3/
Log: Fix again. Should find a better name for this function. 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 @@ -1762,7 +1762,7 @@ return v def setitem(self, index, value): - assert typeOf(value) == self._TYPE.OF + assert isConvertibleFrom(self._TYPE.OF, typeOf(value)) self.items[index] = value assert not '__dict__' in dir(_array) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit