[C++-sig] Re: Boost.Python v2: reference-counting and user-friendly conversions
David Abrahams
david.abrahams at rcn.com
Fri Jun 14 00:53:27 CEST 2002
From: "Dave Hawkes" <daveh at cadlink.com>
> Which then begs the question should a raw PyObject be allowed as an
argument
> at all? Is it too much too insist that the user does this:
>
> call<void>(my_function, handle<>(PyObject_GetAttrString(x, y)))
>
> that way we can also do:
>
> call<void>(my_function, handle<>(borrow(PyImport_AddModule(name))))
It just occurred to me that we can allow
call<void>(my_function, borrow(PyImport_AddModule(name)))
as a convenience.
Regards,
Dave
More information about the Cplusplus-sig
mailing list