pylab_ml.common.common.exec_with_return

exec_with_return(code, parent=None)[source]

Exec with return

implement from https://stackoverflow.com/questions/33409207/how-to-return-value-from-exec-in-function

Parameters:
  • code (TYPE) – DESCRIPTION.

  • parent (TYPE, optional) – DESCRIPTION. The default is None.

Returns:

DESCRIPTION.

Return type:

TYPE