Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-08 13:52:24


Hi Mike,

Sorry, I'm a bit lost. There is a to_python(PyObject*) declaration in
boost/python/conversions.hpp. Is that not what you're looking for?

-Dave

----- Original Message -----
From: <MikeEnsor_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, November 08, 2001 1:41 PM
Subject: [boost] Boost.Python question

> I am trying to return an already wrapped c++ object from a function.
> The way I have it set is that I return a PyObject* which is created
> depending on the input and various other functions. I have no problem
> creating binary, string, double, and int values and returning them as
> a PyObject*. However, I can not figure out how to return a reference
> (copied or reference) back to Python via PyObject. When I try to
> return using boost::python::to_python(obj) the compiler says that
> there is not a converstion. I have included it in the module, but do
> I have to create a "to_python"? Where do I find details on how to do
> that? Thank you,
> Mike Ensor
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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