The 'Remote Is Closer' Release
Almost two months since the last release, and with reason: I've been working hard to define remote()
's semantics. So far this is what there is:
- Global and current scope's local variables can be used in the remote code. This includes envvars.
- Changes to the local variables return to the local code.
- Execution is done synchronously.
I'll write a blog post soon explaining this in more depth. Meanwhile, check the full ChangeLog:
- Great improvements in
remote()
's API and sematics:- Made sure local variables go to and come back from the remote.
- Code block is executed synchronously.
- For the moment the streams are no longer returned.
_python_only
option is gone.- Most tests actually connect to a listening netcat, only one test uses
ssh
.
- Fixed bugs in the new parser.
- Fixed globals/locals mix up.
- Scripts are no longer wrapped in a function. This means that you can't return values and that module semantics are restored.
ayrton
exits with status 1 when the script fails to run (SyntaxError
, etc).