Re: Working with method-wrapper objects

2005-04-19 Thread Peer Dr. Griebel
I think I was a little bit unspecific in my last mail. I would like to see some description about method-wrapper and wrapper_descriptor objects. I dont' understand the following behaviour: >>> type([].__str__) >>> type(object.__str__) >>> type(object().__str__) >>> import inspect >>> inspect

Working with method-wrapper objects

2005-04-18 Thread Peer Dr. Griebel
Hi, I'm currently working on a Python Management Console. During inspection of my objects I stumbled over method-wrapper objects. Such an object may be obtained e.g. as method_wrapper = [].__str__ My problem is: This object is not a method, not a function, not a method descriptor. And it is