API Reference for Enthought Tool Suite 3.2.0
Helper functions used in generating text for representing/calling python function objects.
Return a string that is used to call a func.
func is a function object. name is an optional string. If it is specified, then name is used as the function name in the call signature string.
>>> def func(a,b=1): pass >>> call_signature(func) 'func(a, b)' >>> call_signature(func,name='foo') 'foo(a, b)'
Return a string that duplicates the signature of func.
func is a function object. name is an optional string. If it is specified, then name is used as the function name in the signature string.
>>> def func(a,b): pass >>> def_signature(func) 'def func(a, b):' >>> def_signature(func,name='foo') 'def foo(a, b):'
Given a function, return its args, keywords, and full argument list.
func is a function object.
© Copyright 2002-2009 Enthought, Inc.