This improves default mode performance by avoiding calls to the inspect
module when issuing expect actions.
Also improves the inspect logic to only fetch the desired frame rather
than using inspect.stack() to avoid constructing a list of frames
for the entire stack.
This improves default mode performance by avoiding calls to the inspect module when issuing
expect
actions.Also improves the inspect logic to only fetch the desired frame rather than using inspect.stack() to avoid constructing a list of frames for the entire stack.