Boost logo

Boost :

From: Phil Austin (paustin_at_[hidden])
Date: 2001-10-30 16:29:11


David Abrahams writes:
>
> If you use the technique normally applied to classes with virtual functions
> that may be overridden in Python (see the boost.python docs for this), you
> can end up with a pointer to the Python object in the object it contains.
> >From there you can use PyGetAttrString(self, "__dict__") to access the dict.
>

Thanks for the quick response -- this is what we were looking for.
(and I also notice boost/libs/python/example/abstract.cpp).

Regards, Phil


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk