A difficult question to put a title to so I'll paint a brief scenario...
The application is written in c++
It receives a data message and instantiates a message decoder class.
Based on the contends that are extracted into the class variables, a
response is built by instantiating an encoder clas
Stefan Seefeld wrote:
Robin Gilks wrote:
A difficult question to put a title to so I'll paint a brief scenario...
The application is written in c++
It receives a data message and instantiates a message decoder class.
Based on the contends that are extracted into the class variabl
Stefan Seefeld wrote:
I'm not sure what you are asking. Sticking to my example code, when
you run the python script, 'instance' will be available in the global
namespace, so you can make calls into it from Python. If that is not
what you want, can you come up with another example ?
Thanks,
Following on from my expanding embedded code thread, I'm making progress
in that if I hack the class instantiation in the wrapper that pybindgen
produces I can get it all to work.
With that in mind, I'm trying to use add_function_as_constructor but it
won't let me use a 'void *' or 'PyObject *
Robin Gilks wrote:
Following on from my expanding embedded code thread, I'm making
progress in that if I hack the class instantiation in the wrapper that
pybindgen produces I can get it all to work.
With that in mind, I'm trying to use add_function_as_constructor but
it won'
Robin Gilks wrote:
I've found the pybindgen commit for revision 628 and that fixes the
PyObject problem - got a new one now!! I can't work out the syntax to
return any sort of pointer for example
mod.add_method('methodA', ReturnValue.new('uint8_t *'), [])
Gustavo Carneiro wrote:
Sounds good.
Sorry I wasn't online to help with the other questions. I assume
those problems are solved, if not please ask again the questions.
Where I've got to now is I can't find how to declare a docstring
for a function or method.
Doesn't this work?