logo       

Re: registering simple conversions from/to python: msg#00308

python.c++

Subject: Re: registering simple conversions from/to python

"Brett Calcott" <brett.calcott@xxxxxxxxxxxxxxx> 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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise