PythonScript
A script engine wrapper for dynamically evaluating Python source code using the Jython engine.
Variables are bound directly to the engine without type parameter support, since Python is dynamically typed.
Common literal calls to sys.exit(), exit(), and quit() are rejected on a best-effort basis. This is a convenience against accidental termination, not a security sandbox: it is trivially bypassed (e.g. os._exit(0), getattr(sys, 'ex' + 'it')(0), reflection, or any JVM access exposed by Jython), and it does not inspect string literals or comments. Run untrusted scripts in an isolated process or JVM. Method calls on user objects (for example obj.exit()) are intentionally allowed.
Parameters
nullGlobalContext
if true, sets the global scope bindings to null on initialization