method-wrapper?

andrew cooke andrew at acooke.org
Sat May 31 12:46:45 EDT 2008


Hi,

Within Python (2.5):

 >>> help("__str__")
 Help on method-wrapper object:
 __str__ = class method-wrapper(object)
  |  Methods defined here:
  |
  |  __call__(...)
  |      x.__call__(...) <==> x(...)
  |
  |  __cmp__(...)
  |      x.__cmp__(y) <==> cmp(x,y)
  [...]

What is "method-wrapper"?  Google turns up hardly any hits, same with
searching python.org.

Thanks,
Andrew



More information about the Python-list mailing list