By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,585 Members | 1,795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,585 IT Pros & Developers. It's quick & easy.

Working with method-wrapper objects

P: n/a

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 not a routine according to

So how do I work with it? I would like to be able to detect it. And
I would like to be able to issue a inspect.getargspec() on it.
As we are at it: I have a similar problem with
builtin_function_or_method's. These objects can't be inspected by
getargspec(). So is there some way to determine the argspec in some way?


__________________________________________________ ________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren!

Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.