Re: [C++-sig] How to expose to a python user defined type with to/from_python convertors?

2010-06-03 Thread X Wang
--- On Tue, 5/25/10, Michele De Stefano wrote: > From: Michele De Stefano > Subject: Re: [C++-sig] How to expose to a python user defined type with > to/from_python convertors? > To: "Development of Python/C++ integration" > Date: Tuesday, May 25, 2010, 10:52 AM > There's a very good tutoria

Re: [C++-sig] How to expose to a python user defined type with to/from_python convertors?

2010-05-25 Thread X Wang
> How do I expose my C++ type to a user > defined python type? I think I could use boost python > class_<> wrapper to wrap around, but if I want to use > to_python/from_python convertors? > > Say I want to expose my C++ class(CA) to a python > type(PA): > > C++: > class CA > { >   public: >    

[C++-sig] How to expose to a python user defined type with to/from_python convertors?

2010-05-16 Thread X Wang
How do I expose my C++ type to a user defined python type? I think I could use boost python class_<> wrapper to wrap around, but if I want to use to_python/from_python convertors? Say I want to expose my C++ class(CA) to a python type(PA): C++: class CA { public: //ctors, accessors... p