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