[C++-sig] Re: Re: Re: Re: Boost.Python v2: object facilities updated
Dave Hawkes
daveh at cadlink.com
Thu Jun 20 15:48:35 CEST 2002
"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> wrote in message
news:20020620131743.90448.qmail at web20208.mail.yahoo.com...
> --- Dave Hawkes <daveh at cadlink.com> wrote:
> > class MyClass {
> > MyClass() : x1(handle<>(borrowed(Py_none))),
> > x2(handle<>(borrowed(Py_none))), x3(handle<>(borrowed(Py_none)))
> > {
> > try {
> > x1 = 4;
> > x2 = get_some_value();
> > x3 = x1 + x2;
> > } catch(...) {
> > ...
> > }
> > }
> > object x1, x2, x3;
> > };
>
> Why do a want to do this in C++? Wouldn't it much easier to do this in
Python?
> Ralf
>
It was just a contrived example that would normally be part of a larger c++
class.
Dave Hawkes
More information about the Cplusplus-sig
mailing list