Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Dictionary of Function Parameters

Originally published: 2003-05-22 07:33:49
Last updated: 2004-04-28 23:19:59
Author: Sean Ross

This recipe is based on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/157572.

Calling parameters() inside a function will return that function's parameters as a dictionary. The dictionary does not include *varargs, since *varargs items do not have a "name" that can be used as a key. However, **varkw is added to the dictionary, as an update.

There are three optional parameters that can be used to filter the information returned.