[C++-sig] [boost][python2.5] "with" support
David Abrahams
dave at boost-consulting.com
Wed Sep 27 17:13:51 CEST 2006
"Colin Grealy" <cgrealy at mailcan.com> writes:
>
> True, but to define the __exit__ method you need to write a C++ method
> with the following signature
>
> void func(boost::python::object exc_type,
> boost::python::object exc_val,
> boost::python::object exc_tb)
>
> Most of the C++ objects I wrap are not python aware. I'd like some way
> of wrapping a call to a simple method (e.g. void cleanup()).
We need a design before it can be implemented.
> I suppose I'm looking for a generic way to discard arguements from
> python.
I don't understand the relationship between discarding arguments and
the rest of this thread.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list