Re: [C++-sig] Abstract class instances to-python conversion

2011-08-01 Thread Simon Warg
Valentin Perrelle wrote: > Le 01/08/2011 13:19, Simon Warg a écrit : >> In My program I need to unload modules as well. What I do is remove all >> references to the particular module and it will be unloaded. > It seems i didn't achieve to do that. There should be some referen

Re: [C++-sig] Abstract class instances to-python conversion

2011-08-01 Thread Simon Warg
In My program I need to unload modules as well. What I do is remove all references to the particular module and it will be unloaded. Are you using boost python for python 2 or 3? If it's the latter it is safe to use Py_Finalize()! I use it myself! // Simon On 1 aug 2011, at 12:58, Valentin Per

Re: [C++-sig] Abstract class instances to-python conversion

2011-08-01 Thread Simon Warg
You could use the reload() function in python 2.7 or imp.reload() in python 3. It takes a module object as argument. // Simon On 1 aug 2011, at 12:00, Valentin Perrelle wrote: > >> All of that sounds sounds. But at what point were you trying to register a >> to-python converter? It sounded

Re: [C++-sig] TypeError: No to_python (by-value) converter found for C++ type: class std::basic_ostream >

2010-09-30 Thread Simon Warg
And I forgot to tell you, the python class in an extension of a c++ class. Hence I have the serialise and deserialise function defined in python. // Simon On 29 sep 2010, at 16.02, Jakub Zytka wrote: On 09/29/10 14:11, Simon W wrote: Thank you for the answer. Is there any way I can preven

[C++-sig] Get parameter info of function or method

2010-09-21 Thread Simon Warg
Hi, I'm currently generating doc for my live boost.python classes, instances and function. But I can't find any way to retrieve the parameter info of functions and its signature because it has no __code__ attribute due to it's written I C++. Any solution to this? __