<s> from Rpyc import * <EOL> c = SocketConnection ( "<STR_LIT:localhost>" ) <EOL> rint = c . modules . __builtin__ . int <EOL> rint = Async ( rint ) <EOL> a = rint ( "<STR_LIT>" ) <EOL> b = rint ( "<STR_LIT>" ) <EOL> print a <EOL> print b . is_ready <EOL> print a . result <EOL> print a <EOL> try : <EOL> print b . result <EOL> except ValueError : <EOL> pass <EOL> def f ( res ) : <EOL> print "<STR_LIT>" , <EOL> try : <EOL> print res . result <EOL> except : <EOL> print "<STR_LIT>" <EOL> rint = Async ( c . modules . __builtin__ . int ) <EOL> ar = rint ( "<STR_LIT>" ) <EOL> ar . on_ready = f <EOL> ar = rint ( "<STR_LIT>" ) <EOL> ar . on_ready = f <EOL> rint ( "<STR_LIT>" ) . on_ready = f <EOL> ar = rint . __str__ <EOL> print c . modules . sys <EOL> xxx = <NUM_LIT:0> <EOL> def blah ( ) : <EOL> global xxx <EOL> xxx += <NUM_LIT:1> <EOL> c . modules . thread . start_new_thread ( c . modules [ "<STR_LIT>" ] . threadfunc , ( blah , ) ) <EOL> import time <EOL> time . sleep ( <NUM_LIT:5> ) <EOL> print c . modules . sys <EOL> print xxx </s>
