[pypy-svn] r72760 - pypy/branch/cpython-extension/pypy/module/cpyext

xoraxax at codespeak.net xoraxax at codespeak.net
Wed Mar 24 22:14:06 CET 2010


Author: xoraxax
Date: Wed Mar 24 22:14:05 2010
New Revision: 72760

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/methodobject.py
Log:
Remove old comments.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/methodobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/methodobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/methodobject.py	Wed Mar 24 22:14:05 2010
@@ -14,7 +14,6 @@
 from pypy.rlib.objectmodel import we_are_translated
 
 
-# XXX use Function as a parent class?
 class W_PyCFunctionObject(Wrappable):
     def __init__(self, space, ml, w_self):
         self.space = space
@@ -68,9 +67,6 @@
     return ret
 
 def cmethod_descr_get(space, w_function, w_obj, w_cls=None):
-    """functionobject.__get__(obj[, type]) -> method"""
-    # this is not defined as a method on Function because it's generally
-    # useful logic: w_function can be any callable.  It is used by Method too.
     asking_for_bound = (space.is_w(w_cls, space.w_None) or
                         not space.is_w(w_obj, space.w_None) or
                         space.is_w(w_cls, space.type(space.w_None)))



More information about the Pypy-commit mailing list