exxeleron / qPython

interprocess communication between Python and kdb+
http://www.devnet.de
Apache License 2.0
152 stars 89 forks source link

remote invocation of builtin functions #42

Open mckenzig opened 7 years ago

mckenzig commented 7 years ago

Hi - not an issue, just a support request but I do not see details of support.

Let's say I want to call a remote function from python and pass it a dictionary. Inside the dict I have an entry 'starttime' which a pass a QTemporal for, all good.

Now I do not want to pass a concrete time, I want to pass .z.p i.e. have the server use the current time. Is that possible in qpython?

Thanks.

SKolodynski commented 7 years ago

If you want the server to use .z.p value in that entry the best way is to have d[starttime]:.z.p;` as the first line of your remote function (where d is the name of the parameter you pass to the function). If you don't control the code of the remote function the only way to do that from qPython is to first query the server for .z.p and than call the remote function with the resulting value in the parameter. This may not be accurate though if the server is busy or the network latency significant. The best place to ask questions like this is the exxeleron group on Google groups (registration required).