functions in pyk.i -
|
pyk
|
pyk, py_command
or value = pyk(py_command)
send PY_COMMAND to python front-end. If the wish front-end is not
already running, pyk starts it.
In the second form, pyk suspends the yorick interpreted caller
until python invokes a pyk_resume command returing a value.
| |
| SEE ALSO: | pyk_debug, pyk_resume | |
|
pyk_debug
|
pyk_debug = 1
or pyk_debug = []
If pyk_debug is non-nil and non-zero, print message traffic to and
from wish. This is useful for debugging py-yorick interaction.
| |
| SEE ALSO: | pyk | |
|
pyk_import
|
pyk_import, filename
source FILENAME containing python program into python front-end.
If python front-end is not already running, pyk_source starts it.
| |
| SEE ALSO: | pyk | |
|
pyk_resume
|
pyk_resume value
This function must be invoked by the python front-end; it should
never be called by yorick programs.
When python receives a pyk_sync command, it must eventually
respond with a pyk_resume in order to unblock the pyk function.
| |
| SEE ALSO: | pyk | |
|
pyk_set
|
pyk_set var1 val1 var2 val2 ...
This function is designed to be invoked by the python front-end;
it is not useful for yorick programs.
Equivalent to
var1=val1; var2=val2; ...
Handles at most 8 var/val pairs.
As a special case, if given an odd number of arguments, pyk_set
sets the final var to [], e.g.-
pyk_set var1 12.34 var2
is equivalent to
var1=12.34; var2=[];
| |
| SEE ALSO: | pyk | |