[BACK]Return to assert1.rr CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_python

Diff for /OpenXM/src/ox_python/assert1.rr between version 1.1 and 1.2

version 1.1, 2018/09/08 00:16:19 version 1.2, 2018/09/08 03:05:19
Line 1 
Line 1 
 Pid=ox_launch(0,getenv("OpenXM_HOME")+"/src/ox_python/ox_python")$  pari(nextprime,10)$
 Pid=ox_execute_string(Pid,"from time import time,ctime\nprint 'Today is',ctime(time())\n")$  // It is executed by PyRun_SimpleString()  if (Pid == 0) {
 ox_pop_cmo(Pid);    Pid=ox_launch(0,getenv("OpenXM_HOME")+"/src/ox_python/ox_python")$
   }else{}$
   ox_execute_string(Pid,"from time import time,ctime\nprint 'Today is',ctime(time())\n")$  // It is executed by PyRun_SimpleString()
   printf("result of ox_execute_string = %a, see also server window\n",ox_pop_cmo(Pid))$
   ox_cmo_rpc(Pid,"PyRun_String","str(eval('1+2'))")$
   printf("result of PyRun_String str(eval('1+2')) = %a\n",ox_pop_cmo(Pid))$
   ox_cmo_rpc(Pid,"PyRun_String","print('Hello')")$
   printf("result of PyRun_String print('Hello')= %a\n",ox_pop_cmo(Pid))$
   ox_cmo_rpc(Pid,"PyRun_String","1+2")$
   printf("result of PyRun_String 1+2= %a\n",ox_pop_cmo(Pid))$
   ox_cmo_rpc(Pid,"eval","1+2")$
   printf("result of eval 1+2= %a\n",ox_pop_cmo(Pid))$
 end$  end$
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>