I have this very simple C++ class:
class Tree { public: Node *head; }; BOOST_PYTHON_MODULE(myModule) { class_(\"Tree\") .
Of course, I find the answer ten minutes after asking the question...here's how it's done:
class_<Tree>("Tree") .add_property("head", make_getter(&Tree::head, return_value_policy<reference_existing_object>()), make_setter(&Tree::head, return_value_policy<reference_existing_object>())) ;