How can i get the parameternames of a non documented function ?

Robert Brewer fumanchu at amor.org
Mon Feb 23 12:37:10 EST 2004


Martin wrote:
> I import a module (wrapped from c code) and have no documentation of
> it. How can i find out the name of the parameters / head of the
> functions ?

An example:

>>> import parser
>>> dir(parser)
['ASTType', 'ParserError', 'STType', '__copyright__', '__doc__',
'__file__', '__name__', '__version__', '_pickler', 'ast2list',
'ast2tuple', 'compileast', 'compilest', 'expr', 'isexpr', 'issuite',
'sequence2ast', 'sequence2st', 'st2list', 'st2tuple', 'suite',
'tuple2ast', 'tuple2st']


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org




More information about the Python-list mailing list