Function parameters list

Chris Rebert clp2 at rebertia.com
Tue Dec 1 03:21:20 EST 2009


On Tue, Dec 1, 2009 at 12:15 AM, Nadav Chernin <Nadav.C at qualisystems.com> wrote:
> Hello, all
>
> I need to know dynamically parameters of any function (prototype).
>
> Is there some way to get it?

The `inspect` module:

http://docs.python.org/library/inspect.html#inspect.getargspec
http://docs.python.org/library/inspect.html#inspect.formatargspec

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list