[Python-ideas] built-in argspec for function objects
nbv4
nbvfour at gmail.com
Sun Jan 27 00:27:39 CET 2013
def my_function(a, b=c):
pass
>>> my_function.args
['a']
>>> my_function.kwargs
{'b': c}
>>> my_function.all_args
['a', 'b']
What do you all think? Argspec is kind of unwieldy, this I think looks a
lot nicer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130126/5726efc7/attachment.html>
More information about the Python-ideas
mailing list