Retrieve a pretty name for the function :param function: function to get name from :return: pretty name
(function)
| 25 | |
| 26 | |
| 27 | def name(function): |
| 28 | """ |
| 29 | Retrieve a pretty name for the function |
| 30 | :param function: function to get name from |
| 31 | :return: pretty name |
| 32 | """ |
| 33 | if isinstance(function, types.FunctionType): |
| 34 | return function.__name__ |
| 35 | else: |
| 36 | return str(function) |
| 37 | |
| 38 | |
| 39 | def map_t(func): |
no outgoing calls