PySession
mixin PySession
Mixin for types that implement a python session.
Close the session, and return this
Define a variable in local scope, and return this
Evaluate the expression and return the result
Execute the given code block, and return this
If the session has not been initialized yet, invoke the callback with this session to allow it to do one-time setup
Kill the session - it can no longer be used again
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