[pypy-svn] r70004 - pypy/branch/sepcomp/pypy/tool

xoraxax at codespeak.net xoraxax at codespeak.net
Wed Dec 9 12:31:10 CET 2009


Author: xoraxax
Date: Wed Dec  9 12:31:09 2009
New Revision: 70004

Modified:
   pypy/branch/sepcomp/pypy/tool/descriptor.py
Log:
Add repr for instance method descriptor.

Modified: pypy/branch/sepcomp/pypy/tool/descriptor.py
==============================================================================
--- pypy/branch/sepcomp/pypy/tool/descriptor.py	(original)
+++ pypy/branch/sepcomp/pypy/tool/descriptor.py	Wed Dec  9 12:31:09 2009
@@ -17,6 +17,9 @@
         self.im_self = im_self
         self.im_class = im_class
 
+    def __repr__(self):
+        return "<InstanceMethod class=%r self=%r func=%r>" % (self.im_class, self.im_self, self.im_func)
+
     def __call__(self, *args, **kwds):
         firstarg = self.im_self
         if firstarg is None:



More information about the Pypy-commit mailing list