Re: [C++-sig] Conversion from Python to C++

2009-10-02 Thread Michele De Stefano
Honestly, no. Thank you for pointing me to that. I will look at it and if I have problems again, I will post again. Thank you very much. 2009/10/2 Nat Goodspeed : > Michele De Stefano wrote: > >> I'd like to write a custom from_python converter, but the point is >> that I've not understood how i

Re: [C++-sig] Conversion from Python to C++

2009-10-02 Thread Nat Goodspeed
Michele De Stefano wrote: I'd like to write a custom from_python converter, but the point is that I've not understood how it works. Did you see Austin Bingham's recent post on another thread? If it's any help, I wrote a small bit on the details of writing converters. It might help clarify so

Re: [C++-sig] Conversion from Python to C++

2009-10-02 Thread Michele De Stefano
Ok. I'd like to write a custom from_python converter, but the point is that I've not understood how it works. The explanation in the FAQs it's too obscure for me. 2009/10/2 Stefan Seefeld : > On 10/02/2009 10:06 AM, Michele De Stefano wrote: >> >> For example, assume we have two C++ classes, A a

Re: [C++-sig] Conversion from Python to C++

2009-10-02 Thread Stefan Seefeld
On 10/02/2009 10:06 AM, Michele De Stefano wrote: For example, assume we have two C++ classes, A and B. A is exported to Python with class_<>, while B is not exported to Python. Assume also that, in C++, A is convertible to B (i.e. I can construct a B object from an existing A object). Assume I

[C++-sig] Conversion from Python to C++

2009-10-02 Thread Michele De Stefano
Hello to everybody. I was wondering if there is a general way to convert a C++ class wrapped in Python into a C++ class not wrapped in Python. I've not fully understood the documentation on this point. For example, assume we have two C++ classes, A and B. A is exported to Python with class_<>, wh