Commits

Stephen Tu committed 281dc02

Get logspaceoptypes to work

Comments (0)

Files changed (1)

pypy/objspace/std/frame.py

 import operator
 
 from pypy.rlib.unroll import unrolling_iterable
+from pypy.rlib.objectmodel import we_are_translated
 from pypy.interpreter import pyopcode
 from pypy.interpreter.pyframe import PyFrame
 from pypy.interpreter.error import OperationError
 from pypy.objspace.std import intobject, smallintobject
 from pypy.objspace.std.multimethod import FailedToImplement
 from pypy.objspace.std.listobject import W_ListObject
-
+from pypy.tool.sourcetools import func_with_new_name
 
 class BaseFrame(PyFrame):
     """These opcodes are always overridden."""
     if space.config.objspace.std.optimized_comparison_op:
         StdObjSpaceFrame.COMPARE_OP = fast_COMPARE_OP
     if space.config.objspace.std.logspaceoptypes:
-        assert 0, "logspaceoptypes: a few fixes a missing here"
-        StdObjSpace._space_op_types = []
+        #assert 0, "logspaceoptypes: a few fixes a missing here"
+        StdObjSpaceFrame._space_op_types = []
         for name, new in get_logging():
             setattr(StdObjSpaceFrame, name, new)
     return StdObjSpaceFrame
 
 
 def get_logging():
-    for name, func in pyframe.PyFrame.__dict__.iteritems():
+    for name, func in PyFrame.__dict__.iteritems():
         if hasattr(func, 'binop'):
             operationname = func.binop
             def make_opimpl(operationname):