[C++-sig] pointer_arg_from_python documentation

David Abrahams dave at boost-consulting.com
Tue Apr 10 22:32:28 CEST 2007


on Tue Apr 10 2007, Monio <abelalon-AT-gmail.com> wrote:

> I'm looking for documentation of how to convert a python argument to C++. In
> the boost.python code I found the pointer_arg_from_python template. How this
> template works? 

You don't want to know, really.

> Can I use this template to retrieve a pointer to a C++ object, from a
> PyObject * parameter?

No.

     Foo* x = boost::python::extract<Foo*>(p);

HTH,

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com




More information about the Cplusplus-sig mailing list