axw/pushy — Issue #36: Pushy lacks a simple remote "exec" method
Author: axw
Created: 2012-02-07 15:01:26+00:00
State: open
Labels: Fix Committed, Wishlist

Currently to execute a non-trivial piece of code you must compile a code object and evaluate it, e.g.:-
conn = pushy.connect(...)
code_obj = conn.eval("compile")(source, "", "exec")
conn.eval(code_obj, locals=..., globals=...)

This should be made simpler, by introducing a function that wraps these steps.