[pypy-svn] r74124 - pypy/trunk/pypy/rpython
benjamin at codespeak.net
benjamin at codespeak.net
Tue Apr 27 22:29:24 CEST 2010
Author: benjamin
Date: Tue Apr 27 22:29:22 2010
New Revision: 74124
Modified:
pypy/trunk/pypy/rpython/rtyper.py
Log:
compare classes with 'is' not ==
Modified: pypy/trunk/pypy/rpython/rtyper.py
==============================================================================
--- pypy/trunk/pypy/rpython/rtyper.py (original)
+++ pypy/trunk/pypy/rpython/rtyper.py Tue Apr 27 22:29:22 2010
@@ -171,7 +171,7 @@
def getrepr(self, s_obj):
# s_objs are not hashable... try hard to find a unique key anyway
key = self.makekey(s_obj)
- assert key[0] == s_obj.__class__
+ assert key[0] is s_obj.__class__
try:
result = self.reprs[key]
except KeyError:
More information about the Pypy-commit
mailing list