callableDetailsString¶
-
utils.
callableDetailsString
(item)[source]¶ Takes a callable item and returns a string detailing the function.
Currently only extracts things stored in
item.Name
anditem.Params
Parameters: item (callable item) – Returns: description – Contains the properties and name of the callable Return type: string Examples
>>> from utils import callableDetailsString >>> def foo(): print("foo") >>> foo.Name = "boo" >>> callableDetailsString(foo) 'boo' >>> foo.Params = {1: 2, 2: 3} >>> callableDetailsString(foo) 'boo with 1 : 2, 2 : 3'