1. Pypy
  2. Untitled project
  3. pypy


pypy / pypy / interpreter / pycode.py

Diff from to

File pypy/interpreter/pycode.py

  • Ignore whitespace
     def _from_code(cls, space, code, hidden_applevel=False, code_hook=None):
-        """ Initialize the code object from a real (CPython) one.
-            This is just a hack, until we have our own compile.
-            At the moment, we just fake this.
-            This method is called by our compile builtin function.
+        """
+        Hack to initialize the code object from a real (CPython) one.
         assert isinstance(code, types.CodeType)
         newconsts_w = [None] * len(code.co_consts)
                       hidden_applevel, cpython_magic)
     def _compute_flatcall(self):
         # Speed hack!
         self.fast_natural_arity = eval.Code.HOPELESS