[pypy-svn] r4895 - in pypy/branch/src-newobjectmodel/pypy: interpreter objspace

arigo at codespeak.net arigo at codespeak.net
Fri Jun 4 10:11:49 CEST 2004


Author: arigo
Date: Fri Jun  4 10:11:49 2004
New Revision: 4895

Modified:
   pypy/branch/src-newobjectmodel/pypy/interpreter/baseobjspace.py
   pypy/branch/src-newobjectmodel/pypy/objspace/trivial.py
Log:
Minifix.


Modified: pypy/branch/src-newobjectmodel/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/branch/src-newobjectmodel/pypy/interpreter/baseobjspace.py	Fri Jun  4 10:11:49 2004
@@ -93,9 +93,6 @@
         w_id_y = self.id(w_y)
         return self.eq(w_id_x, w_id_y)
 
-    def not_(self, w_obj):  # default implementation
-        return self.wrap(not self.is_true(w_obj))
-
     def unwrapdefault(self, w_value, default):
         if w_value is None or w_value == self.w_None:
             return default

Modified: pypy/branch/src-newobjectmodel/pypy/objspace/trivial.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/objspace/trivial.py	(original)
+++ pypy/branch/src-newobjectmodel/pypy/objspace/trivial.py	Fri Jun  4 10:11:49 2004
@@ -253,6 +253,9 @@
     for _name in ('id', 'type', 'ord', 'round'):
         _auto(_name, _name, locals())
 
+    def not_(self, w_obj):  # default implementation
+        return self.wrap(not self.is_true(w_obj))
+
 #    for _name in ('id', 'type', 'iter', 'repr', 'str', 'len',
 #                  'pow', 'divmod', 'hash', 'setattr', 'delattr', 'hex',
 #                  'oct', 'ord', 'getattr'):



More information about the Pypy-commit mailing list