
What is the purpose of boost::python::borrowed? The documentation has no description for this member that I can see.

Robert Dailey schrieb am Donnerstag 09 Oktober 2008 um 17:11:
On Wed, Oct 8, 2008 at 2:56 PM, Robert Dailey <rcdailey@gmail.com> wrote:
What is the purpose of boost::python::borrowed? The documentation has no description for this member that I can see.
Would be great to get some feedback on this!
This list is more specific to boost.python - http://dir.gmane.org/gmane.comp.python.c++ Maybe re-posting there gives a higher change for getting proper response. Best, -- Maik

On Thu, Oct 9, 2008 at 10:51 AM, Maik Beckmann <beckmann.maik@googlemail.com
wrote:
Robert Dailey schrieb am Donnerstag 09 Oktober 2008 um 17:11:
On Wed, Oct 8, 2008 at 2:56 PM, Robert Dailey <rcdailey@gmail.com> wrote:
What is the purpose of boost::python::borrowed? The documentation has no description for this member that I can see.
Would be great to get some feedback on this!
This list is more specific to boost.python - http://dir.gmane.org/gmane.comp.python.c++ Maybe re-posting there gives a higher change for getting proper response.
Thanks; I'll post there!

on Wed Oct 08 2008, "Robert Dailey" <rcdailey-AT-gmail.com> wrote:
What is the purpose of boost::python::borrowed? The documentation has no description for this member that I can see.
It's not a member; it's a free function. It is used to label a PyObject* so that the reference count will be incremented when a manager (e.g. python::object) gets ahold of it. HTH, -- Dave Abrahams BoostPro Computing http://www.boostpro.com
participants (3)
-
David Abrahams
-
Maik Beckmann
-
Robert Dailey