Names of function's args?
Erno Kuusela
erno-news at erno.iki.fi
Wed Jan 30 05:55:37 EST 2002
In article <mailman.1012316267.4921.python-list at python.org>,
"vigasinus" <vi at rial.net> writes:
| --- In python-list at y..., Michael Hudson <mwh at p...> wrote:
|| > Hello, All
|| > ....
|| > How to get them outside of a function?
|| f.func_code.co_varnames[:f.func_code.co_argcount]
||
|| Is that what you meant?
| Yes. Great thanks for your answer!
be careful how you use this - it can make things mindboggingly
non-obvious if it's not clearly documented. (it took me
a long time to discover bobo/zope did this).
-- erno
More information about the Python-list
mailing list