On Mon, Dec 8, 2008 at 2:45 PM, Chris Rebert <[EMAIL PROTECTED]> wrote: > On Sun, Dec 7, 2008 at 8:39 PM, sniffer <[EMAIL PROTECTED]> wrote: >> hi all, >> i am a python newbie, in a project currently doing i need to find out >> the number of arguments that a function takes at runtime.? Is this >> possible ,if so how do i do this,i ve looked through the python >> documentation but couldnt find anything.any help will be great > > You want inspect.getargspec() or one of its friends in the `inspect` > module. See http://docs.python.org/library/inspect.html#inspect.getargspec
Also, I have to ask: Why do you need to do this ? Please show some code samples of what you're trying to achieve and what the problem is ? cheers James -- -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/python-list