get function arguments

Batista, Facundo FBatista at uniFON.com.ar
Tue Nov 16 15:04:42 EST 2004


[Steven Bethard]

#- >>> def myFunc(a,b,c='default'):
#- ... 	pass
#- ... 
#- >>> myFunc.func_code.co_varnames
#- ('a', 'b', 'c')
#- 

How do you do that from *inside* the function?

Thanks,

.	Facundo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20041116/58a4b74f/attachment.html>


More information about the Python-list mailing list