bBox_PythonEval( expression )

Evaluates a Python expression, returning its result.

Parameters:
  expression: one or more Python calculations or function calls

Result:
  The result of the evaluated statement, or "?" if there was an error.

Error:
  bBox_LastError ("python")

Script Step:
  none

––––––––––

First appeared in: 0.84

Examples in demo file: 0

Compatibility:   Client, macOS, Server, Ubuntu, WebDirect, WPE

––––––––––

This is a shorter, one-shot version of what PythonCompile/PythonExecute/PythonFinalize does.








Unlike bBox_Python3Run, which invokes Python by executing the python3 command, this function invokes Python directly via the Python library.



––––––––––



bBox Functions



bBox Wiki