public static IntPtr tp_repr(IntPtr ob) { MethodObject self = (MethodObject)GetManagedObject(ob); string s = String.Format("<method '{0}'>", self.name); return Runtime.PyString_FromStringAndSize(s, s.Length); }