[pypy-svn] r19967 - pypy/branch/somepbc-refactoring/pypy/annotation

pedronis at codespeak.net pedronis at codespeak.net
Thu Nov 17 11:27:42 CET 2005


Author: pedronis
Date: Thu Nov 17 11:27:41 2005
New Revision: 19967

Modified:
   pypy/branch/somepbc-refactoring/pypy/annotation/bookkeeper.py
Log:
we want indeed the same Desc in this case.



Modified: pypy/branch/somepbc-refactoring/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/branch/somepbc-refactoring/pypy/annotation/bookkeeper.py	(original)
+++ pypy/branch/somepbc-refactoring/pypy/annotation/bookkeeper.py	Thu Nov 17 11:27:41 2005
@@ -385,9 +385,7 @@
                 result = description.ClassDesc(self, pyobj)
             elif isinstance(pyobj, types.MethodType):
                 if pyobj.im_self is None:   # unbound
-                    # XXX this will return a different Desc than that
-                    # returned by getdesc(pyobj.im_func) -- do we care?
-                    result = description.FunctionDesc(self, pyobj.im_func)
+                    return self.getdesc(pyobj.im_func)
                 elif (hasattr(pyobj.im_self, '_freeze_') and
                       pyobj.im_self._freeze_()):  # method of frozen
                     result = description.MethodOfFrozenDesc(self,



More information about the Pypy-commit mailing list