2 Oct
2005
2 Oct
'05
9:17 p.m.
Hello! I want to do the following with Boost::Python: class A { public: std::string Value; }; class B { public: A Str; int Val; }; /* Boost::Code */ class_<A>("A") .def("Value", &A::Value) ; class_<B>("B") .def("Str", &B::Str) .def("Val", &B::Val) ; /*---------*/ I then wish to do this in Python: ############### MyB = B() B.Str = "Some string" print "String: %s"%B.Str # The output should be as follows:
String: Some string
How do I acomplish this?
6996
Age (days ago)
6996
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wyatt Greenway