rom_python conversions.
If you add them, let me know!
The next item in the FAQ is also relevant.
- Original Message ----
From: Ricardo Abreu
To: cplusplus-sig@python.org
Sent: Monday, January 19, 2009 7:27:46 AM
Subject: [C++-sig] Exposing members of members
Hello,
Suppose that I have a cl
Hello,
Suppose that I have a class A with a member of type std::pair, called a.
If I want to expose class A to python while allowing read/write access
to the object pointed to by a.first, what to I put in def_readwrite?
I tried something like class("A").def_readwrite("a", &A::a::first);
but
Well, thank you. The problem was really that I didn't notice I had to
extract the int explicitly.
About the code being too compact, I'm not sure I got what you mean,
unless you would want me to have a variable in between the tuple and the
print just to hold the result of the cast, in which cas
Thank you, but I had tried that and it doesn't seem to work... look:
http://codepad.org/kA61P8r0
What am I doing wrong?
Thanks,
Ricardo Abreu
David Abrahams wrote:
on Thu Jan 15 2009, Ricardo Abreu wrote:
Hello,
How do I extract elements from a tuple that I receive from python?
Hello,
How do I extract elements from a tuple that I receive from python?
boost::python::tuple doesn't seem to have anything for that in its
interface...
Many thanks,
Ricardo Abreu
PS: I hope the message is not duplicate. I'm sorry if it is, I am having
problems with