Finding Function Args?

Miki Tebeka miki.tebeka at zoran.com
Tue Jun 15 02:22:52 EDT 2004


Hello Mike,

> Check the standard module inspect, particularly;
> 
> >>> import inspect
> >>> import cgi
> >>> inspect.getargspec( cgi.escape )
> (['s', 'quote'], None, None, (None,))
or just cgi.escape.func_code.co_varnames

Bye.
--
-------------------------------------------------------------------------
Miki Tebeka <miki.tebeka at zoran.com>
The only difference between children and adults is the price of the toys.




More information about the Python-list mailing list