[C++-sig] How to expose to a python user defined type with to/from_python convertors?
wangx0802 at yahoo.com
Thu Jun 3 18:35:27 CEST 2010
--- On Tue, 5/25/10, Michele De Stefano <micdestefano at gmail.com> wrote:
> From: Michele De Stefano <micdestefano at gmail.com>
> Subject: Re: [C++-sig] How to expose to a python user defined type with to/from_python convertors?
> To: "Development of Python/C++ integration" <cplusplus-sig at python.org>
> Date: Tuesday, May 25, 2010, 10:52 AM
> There's a very good tutorial on
> writing from/to python converters.
> This tutorial was suggested to me by one of the members of
> mailing list and I've found it very useful.
> The link is this one:
> After reading this very useful article, I managed to write
> mds-utils library (the link is at the end of this e-mail)
> which you
> can download to see how you can write a from/to python
It worked! Sorry for the late reply, I was tied up with a few other things... I just tested a bit and everything works now. I miseed the part where you need to import python type definitions into the C++ environment and somehow thought I could just add attributes on the fly.
Thanks a lot!
More information about the Cplusplus-sig