On 05/06/12 07:28, Paul Emsley wrote:
>
> Hi,
>
> I have a different question. I am in the C++ world.  I want to get to 
> the value returned by the python function default(mol) from the module 
> silicos_it.descriptors.qed.
>
> And to do that, I'm following this:
>
> http://www.codeproject.com/Articles/11805/Embedding-Python-in-C-C-Part-I
>
> I can get the PyObject * for the default() function. I need to load a 
> tuple for the argument list with a PyObject * representation of a 
> const RDKit::ROMol &.  From what Ralf says, I need to construct a 
> boost.python object (how do I do that?) and use its ptr() function to 
> get a PyObject *.

(To reply to myself)

After yet more reading and tinkering, I see that 
boost::python::api::object(mol) seems to give me what I want... (maybe).

Paul.



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rdkit-devel mailing list
Rdkit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-devel

Reply via email to