From: Chris Spencer <chrisspen@gm...> - 2012-10-10 15:20:10
How do you define a custom type/class for use with SOAPpy?
I'd like to pass an nltk.Tree instance (an extension of Python's list
type). However, by default, SOAPpy converts this to a normal Python
list, losing all extra attributes and methods. Since data is lost, I
can't simple convert the list back to a Tree on the client side.
I know this would reduce portability, but I don't care since I'm only
using this for IPC, so both the server and client will have access to
the same libraries and the nltk.Tree class definition.
Sorry if this is mentioned somewhere, but I couldn't find any
documentation through Google.
Get latest updates about Open Source Projects, Conferences and News.