From 1bdb9330e56e49ecd660f3aafdc2d349a20e3044 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Nov 2009 17:16:59 -0500 Subject: Simplified passing of scope objects in Python --- src/py_account.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/py_account.cc') diff --git a/src/py_account.cc b/src/py_account.cc index 8310f5ec..d1d35cda 100644 --- a/src/py_account.cc +++ b/src/py_account.cc @@ -189,9 +189,9 @@ void export_account() .def("remove_account", &account_t::remove_account) .def("find_account", &account_t::find_account, - return_value_policy()) + return_internal_reference<>()) .def("find_account_re", &account_t::find_account, - return_value_policy()) + return_internal_reference<>()) .def("add_post", &account_t::add_post) .def("remove_post", &account_t::remove_post) @@ -211,15 +211,15 @@ void export_account() .def("has_xdata", &account_t::has_xdata) .def("clear_xdata", &account_t::clear_xdata) .def("xdata", py_xdata, - return_value_policy()) + return_internal_reference<>()) .def("amount", &account_t::amount) .def("total", &account_t::total) .def("self_details", &account_t::self_details, - return_value_policy()) + return_internal_reference<>()) .def("family_details", &account_t::family_details, - return_value_policy()) + return_internal_reference<>()) .def("has_xflags", &account_t::has_xflags) .def("children_with_flags", &account_t::children_with_flags) -- cgit v1.2.3