PySession
mixin PySession
Mixin for types that implement a python session.
If the session has not been initialized yet, invoke the callback with this session to allow it to do one-time setup
Evaluate the expression and return the result
Define a variable in local scope, and return this
Kill the session - it can no longer be used again
Close the session, and return this
Execute the given code block, and return this
Set the timeout for evaluating python expressions and return this
virtual This close()
Close the session, and return this
abstract This define(Str name, Obj? val)
Define a variable in local scope, and return this
abstract Obj? eval(Str expr)
Evaluate the expression and return the result.
abstract This exec(Str code)
Execute the given code block, and return this
abstract This init(|PySession| fn)
If the session has not been initialized yet, invoke the callback with this session to allow it to do one-time setup.
virtual This kill()
Kill the session - it can no longer be used again
abstract This timeout(Duration? dur)
Set the timeout for evaluating python expressions and return this