Re: [C++-sig] pybindgen add_function_as_constructor

2009-04-28 Thread Gustavo Carneiro
2009/4/27 Robin Gilks > 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

Re: [C++-sig] pybindgen add_function_as_constructor

2009-04-27 Thread Robin Gilks
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?

Re: [C++-sig] pybindgen add_function_as_constructor

2009-04-27 Thread Gustavo Carneiro
2009/4/27 Robin Gilks > 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 *'), []) >

Re: [C++-sig] pybindgen add_function_as_constructor

2009-04-26 Thread Robin Gilks
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 *'), []) This is probably me again not unders

Re: [C++-sig] pybindgen add_function_as_constructor

2009-04-26 Thread Robin Gilks
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't let me use a 'vo