[pypy-svn] r57077 - pypy/branch/isinstance-refactor/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Thu Aug 7 19:06:41 CEST 2008
Author: arigo
Date: Thu Aug 7 19:06:33 2008
New Revision: 57077
Modified:
pypy/branch/isinstance-refactor/pypy/interpreter/baseobjspace.py
Log:
Uh? Nonsense.
Modified: pypy/branch/isinstance-refactor/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/isinstance-refactor/pypy/interpreter/baseobjspace.py (original)
+++ pypy/branch/isinstance-refactor/pypy/interpreter/baseobjspace.py Thu Aug 7 19:06:33 2008
@@ -752,21 +752,21 @@
# for the simple case (new-style class, new-style class).
# This method is patched with the full logic by the __builtin__
# module when it is loaded.
- return self.unwrap(self.issubtype(w_cls1, w_cls2))
+ return self.is_true(self.issubtype(w_cls1, w_cls2))
def abstract_isinstance_w(self, w_obj, w_cls):
# Equivalent to 'isinstance(obj, cls)'. The code below only works
# for the simple case (new-style instance, new-style class).
# This method is patched with the full logic by the __builtin__
# module when it is loaded.
- return self.unwrap(self.isinstance(w_obj, w_cls))
+ return self.is_true(self.isinstance(w_obj, w_cls))
def abstract_isclass_w(self, w_obj):
# Equivalent to 'isinstance(obj, type)'. The code below only works
# for the simple case (new-style instance without special stuff).
# This method is patched with the full logic by the __builtin__
# module when it is loaded.
- return self.unwrap(self.isinstance(w_obj, self.w_type))
+ return self.is_true(self.isinstance(w_obj, self.w_type))
def abstract_getclass(self, w_obj):
# Equivalent to 'obj.__class__'. The code below only works
More information about the Pypy-commit
mailing list