[C++-sig] Re: registering simple conversions from/to python
David Abrahams
dave at boost-consulting.com
Wed May 28 16:52:51 CEST 2003
"Brett Calcott" <brett.calcott at paradise.net.nz> writes:
> Wow! I was off on some wild goose chase making things complicated,
> thinking I had to write custom converters..
>
> This has got to count as one very funky technique. I expose my class,
> and then add a bunch of pythonic functionality to it by declaring
> functions of this kind.
Heck, you can even do this stuff to your extensions classes in pure
Python. See http://attachments.gmane.org/zip00608.zip.att (save as
.zip file and unpack).
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list