[pypy-svn] r65815 - pypy/branch/pyjitpl5-experiments/pypy/rpython/ootypesystem
antocuni at codespeak.net
antocuni at codespeak.net
Thu Jun 18 14:59:40 CEST 2009
Author: antocuni
Date: Thu Jun 18 14:59:40 2009
New Revision: 65815
Modified:
pypy/branch/pyjitpl5-experiments/pypy/rpython/ootypesystem/ootype.py
Log:
be more robust when comparing _view instances to something else
Modified: pypy/branch/pyjitpl5-experiments/pypy/rpython/ootypesystem/ootype.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/rpython/ootypesystem/ootype.py (original)
+++ pypy/branch/pyjitpl5-experiments/pypy/rpython/ootypesystem/ootype.py Thu Jun 18 14:59:40 2009
@@ -1045,7 +1045,8 @@
return not (self == other)
def __eq__(self, other):
- assert isinstance(other, (_view, _callable))
+ if not isinstance(other, _view):
+ return False
a = self._inst
b = other._inst
return a.__class__ == b.__class__ and a == b
More information about the Pypy-commit
mailing list