[pypy-svn] r17826 - pypy/dist/pypy/interpreter

pedronis at codespeak.net pedronis at codespeak.net
Sat Sep 24 16:04:53 CEST 2005


Author: pedronis
Date: Sat Sep 24 16:04:52 2005
New Revision: 17826

Modified:
   pypy/dist/pypy/interpreter/gateway.py
Log:
create abstract method to avoid annotator demotion warnings



Modified: pypy/dist/pypy/interpreter/gateway.py
==============================================================================
--- pypy/dist/pypy/interpreter/gateway.py	(original)
+++ pypy/dist/pypy/interpreter/gateway.py	Sat Sep 24 16:04:52 2005
@@ -269,7 +269,10 @@
         raise TypeError, "abstract"
 
 class BuiltinFrameFactory(object):
-    pass
+    """Subclasses can create builtin frames for a associated  builtin"""
+    
+    def create(self, space, code, w_globals):
+        raise TypeError, "abstract"
 
 class BuiltinCodeSignature(Signature):
     "NOT_RPYTHON"



More information about the Pypy-commit mailing list