function_to_str

nrv.backend.function_to_str(func: Callable) str[source]

Return the source code corresponding to a callable.

Parameters:

func (Callable) – Callable object to serialize.

Returns:

Source code of the callable.

Return type:

str