Retrieve the argument list of a function

Martin v. Löwis martin at v.loewis.de
Thu Jan 16 11:30:41 EST 2003


boethius at techie.com (Boethius) writes:

> How can I retrieve the argument list of a given function?

For a Python function, try foo.func_code.co_argcount.

Regards,
Martin




More information about the Python-list mailing list