[pypy-svn] r32916 - pypy/dist/pypy/annotation

fijal at codespeak.net fijal at codespeak.net
Thu Oct 5 20:13:11 CEST 2006


Author: fijal
Date: Thu Oct  5 20:13:10 2006
New Revision: 32916

Modified:
   pypy/dist/pypy/annotation/description.py
Log:
Make Desc extendable type (this doesn't brake anything, does it?)


Modified: pypy/dist/pypy/annotation/description.py
==============================================================================
--- pypy/dist/pypy/annotation/description.py	(original)
+++ pypy/dist/pypy/annotation/description.py	Thu Oct  5 20:13:10 2006
@@ -4,7 +4,7 @@
 from pypy.interpreter.argument import rawshape
 from pypy.interpreter.argument import ArgErr
 from pypy.tool.sourcetools import valid_identifier
-
+from pypy.annotation.pairtype import extendabletype
 
 class CallFamily:
     """A family of Desc objects that could be called from common call sites.
@@ -110,6 +110,8 @@
 # ____________________________________________________________
 
 class Desc(object):
+    __metaclass__ = extendabletype
+
     def __init__(self, bookkeeper, pyobj=None):
         self.bookkeeper = bookkeeper
         # 'pyobj' is non-None if there is an associated underlying Python obj



More information about the Pypy-commit mailing list