Abhinav Pandey · Sep 14, 2020

w $zf(-100,"a='./DC hello'") Fetch return value of method in variable "a" from Python

In below command a is storing our return value from Python Script, hello is our device, our python script is returning device type against passing a parameter, this parameter is a device :

w $zf(-100,"a='./DC hello'")

Please help us to fetch return value of method in variable "a" returning from Python in cache.

Thanks in advance, experts

0 214
Discussion (3)0
Log in or sign up to continue

Thanks Danny for your time.

writing the output in file and reading is somehow not acceptable by my org.

Yes, API can help in this and going to implement the same.

Thanks a lot for sharing knowledge and for your time to look into this.

You can use PythonGateway to call Python code from InterSystems IRIS directly.


set sc = ##class("x='HELLO'", "x", , .x)
write x