Re: [Twisted-Python] problem with numpy and twisted xmlrpc

2014-04-30 Thread Daniel Sank
Nicola, Since you responded to my last message directly rather than to the list, I am putting our conversation here for clarity. Please respond to the list rather than to single users. >>> I don't know whether this makes sense in the context of xmlrpc, but perhaps >>> you can use numpy's tostring

Re: [Twisted-Python] problem with numpy and twisted xmlrpc

2014-04-30 Thread Daniel Sank
Nicola, I don't know whether this makes sense in the context of xmlrpc, but perhaps you can use numpy's tostring and fromstring functions. If you do this you have to also send the datatype so that fromstring knows how to unpack (that's the part where I'm not sure if this strategy is xmlrpc-ish).

[Twisted-Python] problem with numpy and twisted xmlrpc

2014-04-30 Thread Nicola Cesca
Hi all, I'm newbie. I got a lot of problem using xmlrpc and numpy I'm using numpy to to some staff and then serve the results via a twisted/XMLRPC server. If the result is a numpy float 64, I get an exception cause probably twisted can't handle this type. Infact is I downgrade the result to fl